gtpc2mj3C/C++ Language Support User's Guide

Standard C/C++ Library Functions

The following standard C/C++ library functions are supported on the TPF system but not documented in this book; however, they are documented in OS/390 C/C++ Run-Time Library Reference.


Table 49. Standard C/C++ Library Functions Supported by the TPF System but Not Documented In This Book

Function TPF Header File Standards C or C++
ISO-C POSIX.1 XPG4.1 XPG4.2
abs stdlib.h X X X X Both
acos math.h X X X X Both
asctime time.h X X X X Both
asin math.h X X X X Both
atan math.h X X X X Both
atan2 math.h X X X X Both
atof stdlib.h X X X X Both
atoi stdlib.h X X X X Both
atol stdlib.h X X X X Both
bcmp strings.h


X Both
bcopy strings.h


X Both
bsearch stdlib.h X X X X Both
bzero strings.h


X Both
calloc stdlib.h X X X X Both
ceil math.h X X X X Both
clock time.h X X X X Both
cos math.h X X X X Both
cosh math.h X X X X Both
ctime time.h X X X X Both
difftime time.h X
X X Both
div stdlib.h X
X X Both
exp math.h X X X X Both
fabs math.h X X X X Both
ffs strings.h


X Both
fgetwc wchar.h X
X X Both
fgetws wchar.h X
X X Both
floor math.h X X X X Both
fmod math.h X X X X Both
fnmatch fnmatch.h

X X Both
fputwc wchar.h

X X Both
fputws wchar.h

X X Both
free stdlib.h X X X X Both
frexp math.h X X X X Both
getopt 1 stdlib.h

X X Both
getsyntx variant.h



Both
getwc wchar.h X
X X Both
getwchar wchar.h X
X X Both
getwmccoll collate.h



Both
glob 2 3 globb.h

X X Both
globfree 2 globb.h

X X Both
gmtime time.h X X X X Both
iconv iconv.h

X X Both
iconv_close iconv.h

X X Both
iconv_open iconv.h

X X Both
isalnum ctype.h X X X X Both
isalpha ctype.h X X X X Both
isblank ctype.h



Both
iscntrl ctype.h X X X X Both
isdigit ctype.h X X X X Both
isgraph ctype.h X X X X Both
islower ctype.h X X X X Both
isprint ctype.h X X X X Both
ispunct ctype.h X X X X Both
isspace ctype.h X X X X Both
isupper ctype.h X X X X Both
iswalnum wctype.h X
X X Both
iswalpha wctype.h X
X X Both
iswcntrl wctype.h X
X X Both
iswctype wctype.h X
X X Both
iswdigit wctype.h X
X X Both
iswgraph wctype.h X
X X Both
iswlower wctype.h X
X X Both
iswprint wctype.h X
X X Both
iswpunct wctype.h X
X X Both
iswspace wctype.h X
X X Both
iswupper wctype.h X
X X Both
iswxdigit wctype.h X
X X Both
isxdigit ctype.h X X X X Both
labs stdlib.h X
X X Both
ldexp math.h X X X X Both
ldiv stdlib.h X
X X Both
llabs stdlib.h



Both
lldiv stdlib.h



Both
localeconv locale.h X
X X Both
localtime time.h X X X X Both
log math.h X X X X Both
log10 math.h X X X X Both
malloc stdlib.h X X X X Both
mblen stdlib.h X
X X Both
mbrlen wchar.h X


Both
mbrtowc wchar.h X


Both
mbsinit wchar.h X


Both
mbsrtowcs wchar.h X


Both
mbstowcs stdlib.h X
X X Both
mbtowc stdlib.h X
X X Both
memchr string.h X
X X Both
memcmp string.h X
X X Both
memcpy string.h X
X X Both
memmove string.h X
X X Both
memset string.h X
X X Both
mktime time.h X X X X Both
modf math.h X X X X Both
nl_langinfo langinfo.h

X X Both
pow math.h X X X X Both
putwc wchar.h

X X Both
putwchar wchar.h X
X X Both
qsort stdlib.h X
X X Both
rand stdlib.h X X X X Both
realloc stdlib.h X X X X Both
regcomp regex.h

X X Both
regerror regex.h

X X Both
regexec regex.h

X X Both
regfree regex.h

X X Both
setlocale locale.h X X X X Both
sin math.h X X X X Both
sinh math.h X X X X Both
sqrt math.h X X X X Both
srand stdlib.h
X X X Both
strcasecmp strings.h


X Both
strcat string.h X X X X Both
strchr string.h X
X X Both
strcmp string.h X X X X Both
strcoll string.h X X X X Both
strcpy string.h X
X X Both
strcspn string.h X
X X Both
strdup string.h


X Both
strfmon monetary.h X X X X Both
strftime time.h X X X X Both
strlen string.h X X X X Both
strncasecmp strings.h


X Both
strncat string.h X X X X Both
strncmp string.h X X X X Both
strncpy string.h X
X X Both
strpbrk string.h X X X X Both
strrchr string.h X X X X Both
strspn string.h X
X X Both
strstr string.h X
X X Both
strtocoll collate.h X


Both
strtod stdlib.h X
X X Both
strtok string.h X
X X Both
strtol stdlib.h X
X X Both
strtoll stdlib.h



Both
strtoull stdlib.h



Both
strtoul stdlib.h X
X X Both
strxfrm string.h X
X X Both
swprintf wchar.h X


Both
swscanf wchar.h X


Both
tan math.h X X X X Both
tanh math.h X X X X Both
time time.h X X X X Both
tolower ctype.h X X X X Both
toupper ctype.h X X X X Both
towlower wctype.h
X X X Both
towupper wctype.h
X X X Both
ungetwc wchar.h

X X Both
va_arg stdarg.h X


Both
va_end stdarg.h X


Both
va_start stdarg.h X


Both
vswprintf wchar.h X


Both
wcrtomb wchar.h X


Both
wcscat wchar.h X
X X Both
wcschr wchar.h X
X X Both
wcscmp wchar.h X
X X Both
wcscoll wchar.h X
X X Both
wcscpy wchar.h X
X X Both
wcscspn wchar.h X
X X Both
wcsftime wchar.h X
X X Both
wcslen wchar.h X
X X Both
wcsncat wchar.h X
X X Both
wcsncmp wchar.h X
X X Both
wcsncpy wchar.h X
X X Both
wcspbrk wchar.h X
X X Both
wcsrchr wchar.h X
X X Both
wcsrtombs wchar.h X


Both
wcsspn wchar.h X
X X Both
wcsstr wchar.h X


Both
wcstod wchar.h X
X X Both
wcstok wchar.h X
X X Both
wcstol wchar.h X
X X Both
wcstoll wchar.h



Both
wcstombs stdlib.h X
X X Both
wcstoul wchar.h X
X X Both
wcstoull wchar.h



Both
wcswcs wchar.h X
X X Both
wcswidth wchar.h

X X Both
wcsxfrm wchar.h X
X X Both
wctob wchar.h X


Both
wctomb stdlib.h X
X X Both
wctype wchar.h X
X X Both
wcwidth wchar.h

X X Both
wmemchr wchar.h X


Both
wmemcmp wchar.h X


Both
wmemcpy wchar.h X


Both
wmemmove wchar.h X


Both
wmemset wchar.h X


Both

Notes:

  1. The standard header file for getopt is unistd.h.

  2. The standard header file for glob and globfree is glob.h.

  3. There are two glob functions supported on the TPF 4.1 system. See glob-Address TPF Global Field or Record for more information on the TPF-specific glob.