| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| As an experiment to start getting my head around this new C interface that Bernd and Anton delivered with their latest snapshot, here's the simplest call I've found. I recommend shipping it with gforth, and documenting the libcc-tmp folder, but that is their call, not mine. ![]() #! /usr/bin/env gforth \ Contains: GForth dylib test sample \ \ Usage: gforth sleep.fs \ If these folders do not exist, you must create them \ mkdir ~/.gforth \ mkdir ~/.gforth/libcc-tmp \c #include <unistd.h> \ sleep takes number of seconds and returns an int c-function sleep sleep n -- n ..( Testing sleep for 10 seconds ) 10 sleep . cr |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.