basic.cfunction Definition/BASIC Program

basic.cfunction

Command basic.cfunction Definition/BASIC Program
Applicable release versions: AP/DOS, AP/Unix
Category BASIC Program (486)
Description provides access to C libraries from Pick/BASIC.

Three libraries are defined. "unix.builtin" and "gm.builtin" are provided as part of Advanced Pick. "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 version of AP used:

unix.builtin Available on Unix-based versions of AP
c.builtin Available on DOS-based versions of AP
user.builtin Available on Unix and DOS versions of AP
Available on all versions of AP

The "user.builtin" table is maintained with the "addbi" TCL command.
Syntax cfunction name {, name ...}
Options
Example
cfunction unix.builtin
cfunction user.builtin, gm.builtin
Purpose
Related basic.statements
basic.cfunc
basic.cfunc.user
basic.%close.apdos
basic.%open.apdos
basic.%read.apdos
basic.%write.apdos
tcl.addbi.apdos
tcl.addbi.unix
basic.%alarm
basic.%chdir
basic.%chown
basic.%close
basic.%creat
basic.%fclose
basic.%fgetc
basic.%fopen
basic.%freopen
basic.%fdopen
basic.%fprintf
basic.%fputc
basic.%free
basic.%fsize
basic.%getpid
basic.%getpgrp
basic.%getppid
basic.%ioctl
basic.%kill
basic.%lseek
basic.%malloc
basic.%memccpy
basic.%memcpy
basic.%pause
basic.%pclose
basic.%pgetpid
basic.%popen
basic.%putenv
basic.%read
basic.%semctl
basic.%semget
basic.%setflush
basic.%shmget
basic.%shmdt
basic.%wait
basic.%write
basic.cfunc
basic.%chmod
basic.%dup
basic.%fgets
basic.%fputs
basic.%getenv
basic.%shmat
tcl.addbi.unix
basic.execute.unix
basic.%lseek.apdos
basic.%whex
basic.%rdhex
basic.%memxcpy
basic.%listen
basic.%gethostid
basic.%open
basic.%connect
basic.%socket