cfunction Statement

The 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, C Functions Overview, Creating User-Defined C Functions, execute Statement, Statements and Functions