PREVIOUS

Appendix B. Waterloo C Library Functions

Only a subset of the functions normally distributed with Waterloo C are available for use in the KeyKOS environment. You cannot use any of the functions relating to the CMS file system or CMS system calls. All mathematical functions distributed with Waterloo C are available.

The format of the memory allocation functions is as specified by Waterloo C. The routines themselves are replaced to avoid CMS system calls.

The following Waterloo C library functions are supported in the KeyKOS environment, in addition to the full set of Waterloo C mathematical library functions. For a description of the functions listed below see the Waterloo C User's guide.

acall, oscall
call external IBM OS/VS assembler routines
alloca, stakleft
allocate from run-time stack
bcmp
byte memory compare
bcopy
byte memory copy
bzero
byte memory zero
ecvt, fcvt, gcvt
convert float to string
ffs
integer bit set position
free
dynamic memory free
index, rindex
character search in string
insque, remque
insert or remove element from a queue
is<test>
character class test
malloc, realloc, calloc
dynamic memory allocation
qsort
sorting routine
random, srandom
random number generator
setjmp, longjmp
break from a function
sprintf
format data for an output stream
sscanf
format data from an input stream
stof, stoi, stol
string conversion
strcat, strncat
string concatenation
strcmp, strncmp
string compare
strcpy, strncpy
string copy
strcspn, strspn
character span in string
strlen
string length
strpbrk
character break in string
swab
swap bytes
toupper, tolower
change case