The C Library:
List of Supported Functions

Applies to: GCC-1750 Version 1.2, GCC-ERC32 Version 1.2.
Last updated: Friday May 03, 2002.

SUMMARY

GCC-1750 and GCC-ERC32 support much of the ANSI standard C library, libc. The only significant omission are the file-related functions in <stdio.h>. These are not usually relevant for spacecraft applications.

The following table lists all the functions in ANSI 9899-1990, and for each function indicates wherether it is supported or not.

Function Section Description Header Supported
abort 7.10.4.1 Abnormally terminates the program stdlib.h yes
abs 7.10.6.1 The function returns the absolute value stdlib.h yes
asctime 7.12.3.1 Converts time into ASCII string time.h yes
atexit 7.10.4.2 Registers the given function for call when the program exits stdlib.h yes
atof 7.10.1.1 Convert ASCII string to floating point stdlib.h yes
atoi 7.10.1.2 Convert ASCII string to integer stdlib.h yes
atol 7.10.1.3 Convert ASSCII string to long integer stdlib.h yes
bsearch 7.10.5.1 Binary search on sorted array stdlib.h yes
calloc 7.10.3.1 Allocate and clear memory stdlib.h yes
clearerr 7.9.10.1 Clear end-of-file error stdio.h no
clock 7.12.2.1 Returns the CPU time used time.h yes
ctime 7.12.3.2 Converts calendar time to ASCII string time.h yes
difftime 7.12.2.2 Difference between two calendar times time.h yes
div 7.10.6.2 Compute quotient and remainder stdlib.h yes
exit 7.10.4.3 Causes normal termination stdlib.h yes
fclose 7.9.5.1 Close the given stream stdio.h no
feof 7.9.10.2 Tests for end of file stdio.h no
ferror 7.9.10.3 Tests the stream error indicator stdio.h no
fflush 7.9.5.2 Flushes the given stream stdio.h no
fgetc 7.9.7.1 Gets a character from the given stream stdio.h yes
fgetpos 7.9.9.1 Gets file position indicator for stream stdio.h no
fgets 7.9.7.2 Gets a string from the given stream stdio.h yes
fopen 7.9.5.3 Opens the given file stdio.h no
fprintf 7.9.6.1 Formatted write to stream stdio.h yes
fputc 7.9.7.3 Writes a character to the given stream stdio.h yes
fputs 7.9.7.4 Writes a string to the given stream stdio.h yes
fread 7.9.8.1 Reads from stream into array stdio.h yes
free 7.10.3.2 Frees allocated memory stdlib.h yes
freopen 7.9.5.4 Closes the stream then opens the given file on the same stream stdio.h no
fscanf 7.9.6.2 Formatted input from stream stdlib.h no
fseek 7.9.9.2 Sets file position indicator for stream stdlib.h no
fsetpos 7.9.9.3 Sets file position indicator for stream stdlib.h no
ftell 7.9.9.4 Gets file position indicator for stream stdlib.h no
fwrite 7.9.8.2 Writes from array to stream stdlib.h yes
getc 7.9.7.5 Gets a character from a stream stdlib.h yes
getchar 7.9.7.6 Gets a character from stdin stdlib.h yes
gets 7.9.7.7 Gets a string from stdin stdlib.h yes
gmtime 7.12.3.3 Converts calendar time to GMT time.h yes
isalnum 7.3.1.1 isappha or isdigit ctype.h yes
isalpha 7.3.1.2 a to z or A to Z ctype.h yes
iscntrl 7.3.1.3 Control character ctype.h yes
isdigit 7.3.1.4 0 to 9 ctype.h yes
isgraph 7.3.1.5 Any printing char except space ctype.h yes
islower 7.3.1.6 a to z ctype.h yes
isprint 7.3.1.7 Any printing char ctype.h yes
ispunct 7.3.1.8 isprint and not (isspace or isalnum) ctype.h yes
isspace 7.3.1.9 Any white space character ctype.h yes
isupper 7.3.1.10 A to Z ctype.h yes
isxdigit 7.3.1.11 Any digit or letter A to F (or a to f) ctype.h yes
labs 7.10.6.3 Long absolute value stdlib.h yes
ldiv 7.10.6.4 Long divide giving quotient and remainder stdlib.h yes
localtime 7.12.3.4 Converts calendar time to local time time.h yes
longjmp 7.6.2.1 Return to previously saved context setjmp.h yes
malloc 7.10.3.3 Allocate some memory from the heap stdlib.h yes
mblen 7.10.7.1 Count bytes in multi-byte char stdlib.h yes
mbstowcs 7.10.8.1 Convert multi-byte string to wide string stdlib.h yes
mbtowc 7.10.7.2 Convert a multi-byte char to wide char stdlib.h yes
memchr 7.11.5.1 Finds a char in a char array string.h yes
memcmp 7.11.4.1 Compares two char arrays string.h yes
memcpy 7.11.2.1 Copies a char array string.h yes
memmove 7.11.2.2 Copies a char array with overlap string.h yes
memset 7.11.6.1 Fill char array string.h yes
mktime 7.12.2.3 Converts local time to calendar time time.h yes
printf 7.9.6.3 Formatted output stdio.h yes
putc 7.9.7.8 Same as fputc stdio.h yes
puts 7.9.7.10 Same as fputs stdio.h yes
qsort 7.10.5.2 Sort an array stdlib.h no
raise 7.7.2.1 Sends a signal signal.h yes
rand 7.10.2.1 Return a pseudo random number stdlib.h yes
realloc 7.10.3.4 Change size of allocated memory block stdlib.h yes
remove 7.9.4.1 Deletes the given file stdio.h no
rename 7.9.4.2 Renames the given file stdio.h no
rewind 7.9.9.5 Seek to file position zero stdio.h no
scanf 7.9.6.4 Formatted input stdio.h no
setbuf 7.9.5.5 Sets an IO buffer stdio.h no
setvbuf 7.9.5.6 Sets an IO buffer stdio.h no
signal 7.7.1.1 Registers a signal handler signal.h yes
sprintf 7.9.6.5 Formatted print to buffer stdio.h yes
srand 7.10.2.2 Set random number seed stdlib.h yes
sscanf 7.9.6.6 Formatted input from buffer stdio.h no
strcat 7.11.3.2 Appends a string string.h yes
strchr 7.11.5.2 Finds a char in a string string.h yes
strcmp 7.11.4.2 Compares two strings string.h yes
strcoll 7.11.4.3 Compares two strings, locale sensitive string.h yes
strcpy 7.11.2.3 Copies a null-terminated string string.h yes
strcspn 7.11.5.3 Skips chars in string string.h yes
strerror 7.11.6.2 Return error message string.h yes
strftime 7.12.3.5 Formats a time time.h yes
strlen 7.11.6.3 Returns the length of a string string.h yes
strncat 7.11.3.2 Appends up to n chars from a string string.h yes
strncmp 7.11.4.4 Compares up to n chars of two strings string.h yes
strncpy 7.11.2.4 Copies up to n chars of a null-terminated string string.h yes
strpbrk 7.11.5.4 Truncate string from left string.h yes
strrchr 7.11.5.5 Backward find a char in string string.h yes
strspn 7.11.5.6 Skips chars in string string.h yes
strstr 7.11.5.7 Find substring string.h yes
strtok 7.11.5.8 Tokenize string string.h yes
strtol 7.10.1.5 Convert string to long int stdlib.h yes
strtoul 7.10.1.6 Convert string to unsigned long int stdlib.h yes
strxfrm 7.11.4.5 Transforms a string string.h yes
system 7.10.4.5 Makes a system call stdlib.h yes
time 7.12.2.4 Returns the current calendar time time.h yes
tmpfile 7.9.4.3 Creates a temporary file stdio.h no
tmpnam 7.9.4.4 Creates a new unique file name stdio.h no
tolower 7.3.2.1 Convert alphabetic char to lower case ctype.h yes
toupper 7.3.2.2 Convert alphabetic char to upper case ctype.h yes
ungetc 7.9.7.11 Send char back to stdio stdio.h no
vfprintf 7.9.6.8 Formatted output stdio.h yes
vprintf 7.9.6.7 Formatted output stdio.h no
vsprintf 7.9.6.9 Formatted output stdio.h yes
wcstombs 7.10.8.2 Convert a wide string to multi-byte string stdlib.h yes
wctomb 7.10.7.3 Convert a wide char to multi-byte stdlib.h yes
 
Updated May 11, 2005
Copyright XGC Software