

general functions            Overview           general functions




The  library lliibbcc  includes a  number  of functions  that perform
useful, general tasks:

aabboorrtt()   End program immediately
aabbss()     Return the absolute value of an integer
aasssseerrtt()  Check assertion at run time
aattooff()    Convert ASCII strings to floating point
aattooii()    Convert ASCII strings to integers
aattooll()    Convert ASCII strings to long integers
ccaalllloocc()  Allocate dynamic memory
ccaannddaaddddrr()Convert a ddaaddddrr_tt to canonical format
ccaannddeevv()  Convert a ddeevv_tt to canonical format
ccaanniinnoo()  Convert a iinnoo_tt to canonical format
ccaanniinntt()  Convert a iinntt to canonical format
ccaannlloonngg() Convert a lloonngg to canonical format
ccaannsshhoorrtt()Convert a sshhoorrtt to canonical format
ccaannssiizzee() Convert an ffssiizzee_tt to canonical format
ccaannttiimmee() Convert a ttiimmee_tt to canonical format
ccaannvvaaddddrr()Convert a vvaaddddrr_tt to canonical format
ccrryypptt()   Encryption using rotor algorithm
eeccvvtt()    Convert floating-point numbers to strings
eennddggrreenntt()Close group file
eennddppwweenntt()Close password file
eexxiitt()    Terminate a program
ffccvvtt()    Convert floating point numbers to ASCII strings
ffrreeee()    Return dynamic memory to free memory pool
ffrreexxpp()   Separate fraction and exponent
ggccvvtt()    Convert floating point number to ASCII string
ggeetteennvv()  Read environmental variable
ggeettggrreenntt()Get group file information
ggeettggrrggiidd()Get group file information, by group id
ggeettggrrnnaamm()Get group file information, by group name
ggeettllooggiinn()Get login name
ggeettoopptt()  Get a command-line option
ggeettppaassss() Get password with prompting
ggeettppww()   Search password file
ggeettppwweenntt()Get password file information
ggeettppwwnnaamm()Get password file information, by name
ggeettppwwuuiidd()Get password file information, by id
ggeettwwdd()   Get current working directory name
iissaattttyy()  Check if a device is a terminal
ll33ttooll()   Convert file system block number to long integer
llddeexxpp()   Combine fraction and exponent
lloonnggjjmmpp() Return from a non-local goto
llttooll33()   Convert long integer to file system block number
mmaalllloocc()  Allocate dynamic memory
mmeemmookk()   Check if the arena is sound
mmkktteemmpp()  Generate a temporary file name
mmooddff()    Separate integral part and fraction
mmttyyppee()   Return symbolic machine type
nnlliisstt()   Symbol table lookup
ppaatthh()    Build a path name for a file
ppeerrrroorr()  System call error messages
qqssoorrtt()   Sort arrays in memory


COHERENT Lexicon                                           Page 1




general functions            Overview           general functions



rraanndd()    Generate pseudo-random numbers
rreeaalllloocc() Reallocate dynamic memory
sseettggrreenntt()Rewind group file
sseettjjmmpp()  Perform non-local goto
sseettppwweenntt()Rewind password file
sshheellllssoorrtt()Sort arrays in memory
sslleeeepp()   Suspend execution
ssrraanndd()   Seed random number generator
sswwaabb()    Swap a pair of bytes
ssyysstteemm()  Pass a command to the shell for execution
ttttyynnaammee() Identify a terminal
ttttyysslloott() Return a terminal's line number

***** See Also *****

libraries









































COHERENT Lexicon                                           Page 2


