Docomentation example?

Q&A's, tips, howto's
Locked
Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

Docomentation example?

Post by Cyril »

Reading new Jeff's introduction to FFI, I have noted that in the documentation of import function in the newLISP manual there are examples of importing printf from the standard C library for Linux, MacOS and Cygwin, but not for standard Win32 distribution. I have noted many times before that amateur windows programmers doesn't typically know where the standard C library is located in their system. Maybe it is a good idea to give them a hint?

Code: Select all

newLISP v.10.0.1 on Win32 IPv4, execute 'newlisp -h' for more info.

> (import "msvcrt.dll" "printf")
printf <77C4186A>
> (printf "pi = %f\n" 3.1415926)
pi = 3.141593
14
Just one more line in the manual.
With newLISP you can grow your lists from the right side!

xytroxon
Posts: 296
Joined: Tue Nov 06, 2007 3:59 pm
Contact:

Re: Docomentation example?

Post by xytroxon »

LOL!

Just what I was looking for yesterday!

Thanks for the speedy service!!!

Even if I had NOT asked for it yet*...

-- xytroxon

* Einstein's "spooky action at a distance"?
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976

Locked