The functions and macros in the C Library are described in this chapter. They're arranged in alphabetical order.
Use the following links to find a function quickly:
A | B | C | D | E | F | G | H | I | J | K | L |
M | N | O | P | Q | R | S | T | U | V | W | Y |
Each description consists of a number of subsections:
This subsection gives the header files that should be included within a source file that references the function or macro. It also shows an appropriate declaration for the function or for a function that could be substituted for a macro. This declaration isn't included in your program; only the header file(s) should be included.
When a pointer argument is passed to a function and that function does not modify the item indicated by that pointer, the argument is shown with const before the argument. For example, the following indicates that the array pointed at by string isn't changed:
const char *string
This subsection is a description of the function or macro.
This subsection describes the return value (if any) for the function or macro.
This subsection describes the possible values that the function might assign to the global variable errno.
This optional subsection provides a list of related functions or macros, or places to look for more information.
This optional subsection consists of one or more examples of the use of the function. The examples are often just fragments of code (not complete programs) for illustrative purposes.
This subsection provides an indication of where the function or macro is commonly found. The following notation is used:
This subsection provides an indication of where the function or macro is supported. The following notation is used:
When “(MT)” appears after OS/2, it refers to the CLIBMTL library, which supports multi-threaded applications.
When “(DL)” appears after OS/2, it refers to the CLIBDLL library, which supports creation of Dynamic Link Libraries.
When “(all)” appears after “OS/2 1”, it means all versions of the OS/2 1.x libraries.
If a function is missing from the OS/2 library, it may be found in Watcom's 16-bit protected-mode DOS libraries (DOSPM*.LIB) for Phar Lap's 286|DOS-Extender (RUN286).
abort() | abs() | access(), _access() |
acos() | acosh() | alarm() |
alloca() | asctime(), _asctime() | asin() |
asinh() | assert() | atan() |
atan2() | atanh() | atexit() |
atof() | atoh() | atoi() |
atol() |
ecvt(), _ecvt() | _enable() | endgrent() | endpwent() |
_endthread() | eof() | errno | exec... functions |
_exit() | exit() | exp() | _expand() |
halloc() | _heapchk() | _heapenable() | _heapgrow() |
_heapmin() | _heapset() | _heapshrink() | _heapwalk() |
hfree() | hypot() |
j0() | j1() | jn() |
kbhit() | kill() |
nanosleep() | _ncalloc() | _nexpand() |
_nfree() | _nheapchk() | _nheapgrow() |
_nheapmin() | _nheapset() | _nheapshrink() |
_nheapwalk() | _nmalloc() | _nmsize() |
nosound() | _nrealloc() |
offsetof() | onexit() | open() | opendir() |
openlog() | outp() | outpd() | outpw() |
pathconf() | pause() | pclose() | perror() |
pipe() | popen() | pow() | printf() |
print_usage() | putc() | putch() | putchar() |
putenv() | puts() |
ultoa() | umask() | umount() | uname() |
ungetc() | ungetch() | unlink() | unlock() |
utime() | utoa() |
va_arg() | va_end() | va_start() | _vbprintf() | vcprintf() |
vcscanf() | vfprintf() | vfscanf() | vprintf() | vscanf() |
vsprintf() | vsscanf() | vsyslog() |
wait() | waitpid() | wcstombs() | wctomb() |
write writev() | Writemsg() | Writemsgmx() |
y0() | y1() | Yield() | yn() |