Fork: Difference between revisions

6 bytes removed ,  5 months ago
m
(Dialects of BASIC moved to the BASIC section.)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 1,673:
{{trans|C}}
The ability to call C library functions such as ''fork'' may be added to Wren-cli in the next release. In the meantime, we embed the following Wren script in a minimal C host (no error checking) to complete this task.
<syntaxhighlight lang="ecmascriptwren">/* forkFork.wren */
 
class C {
Line 1,756:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "forkFork.wren";
char *script = readFile(fileName);
wrenInterpret(vm, module, script);
9,477

edits