PickBASIC / FlashBASIC
cfunction statement
.mdThe cfunction statement provides access to C libraries from BASIC.
Syntax
cfunction name{,name...}Three libraries are defined:
| gm.builtin | Provided as part of D3. |
| unix.builtin | Provided as part of D3. |
| user.builtin | Provided for user-written C routines. |
If only the C programs defined in the common.builtin libraries are used, the cfunction statement is optional. If user-defined or third party C programs are used, the cfunction user.builtin statement is required.
The user.builtin table is maintained with the TCL addbi command.
Example(s)
cfunction unix.builtin cfunction user.builtin, gm.builtin
See also
%alarm() function→%chdir() function→%chmod() function→%chown() function→%close() function→%connect() function→%creat() function→%dup() function→%fclose() function→%fdopen() function→%fgetc() function→%fgets() function→%fopen() function→%fprintf() function→%fputc() function→%fputs() function→%free() function→%freopen() function→%fsize() function→%getenv() function→%gethostid() function→%getpgrp() function→%getpid() function→%getppid() function→%ioctl() function→%kill() function→%listen() function→%lseek() function→%malloc() function→%memcopy() function→%memcpy() function→%memxcpy() function→%open() function→%pause() function→%pclose() function→%pgetpid() function→%popen() function→%putenv() function→%rdhex() function→%read() function→%semctl() function→%semget() function→%setflush() function→%shmat() function→%shmdt() function→%shmget() function→%socket() function→%wait() function→%whex() function→%write() function→addbi command→FlashBASIC C functions overview→Creating user-defined C functions (D3 UNIX)→execute statement (UNIX)→Statements and functions→