| c function, user-defined | Index Level | CHAIN |
| Syntax | CFUNCTION name {, name ...} |
| Category | BASIC |
| Type | Definition |
| Description |
provides access to C libraries from FlashBASIC.
Three libraries are defined. "unix.builtin" and "gm.builtin" are provided as part of D3. "user.builtin" is provided for user-written C routines. If only the C programs defined in the "unix.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. C program availablility is dependent upon the release of D3 used: unix.builtin Available on D3/Unix releases. user.builtin Available on all D3 releases. Available on all D3 releases. The "user.builtin" table is maintained with the "addbi" TCL command. |
| Options | |
| See Also | statements & functions c function c function, user-defined %READ (AP/DOS) addbi (D3/Unix) %ALARM %CHDIR %CHOWN %CLOSE %CREAT %FCLOSE %FGETC %FOPEN %FREOPEN %FDOPEN %FPRINTF %FPUTC %FREE %FSIZE %GETPID %GETPGRP %GETPPID %IOCTL %KILL %LSEEK (D3/Unix) %MALLOC %MEMCCPY %MEMCPY %PAUSE %PCLOSE %PGETPID %POPEN %PUTENV %READ (D3/Unix) %SEMCTL %SEMGET %SETFLUSH %SHMGET %SHMDT %WAIT %WRITE (D3/Unix) c function %CHMOD %DUP %FGETS %FPUTS %GETENV %SHMAT addbi (D3/Unix) EXECUTE (D3/Unix) %WHEX %RDHEX %MEMXCPY %LISTEN %GETHOSTID %OPEN %CONNECT %SOCKET |
| Example |
cfunction unix.builtin
cfunction user.builtin, gm.builtin |
| Warnings | |
| Compatibility | AP/DOS D3/Unix |
| c function, user-defined | Index Level | CHAIN |