Standard C libraries used by
SHYSTER
math
fabs
: returns the absolute value of its argument;
floor
: returns the greatest integral value less than or equal to its argument; and
sqrt
: returns the square root of its argument.
stdio
EOF
: a constant returned upon reaching the end of a file;
fclose
: causes any buffered data waiting to be written for the given stream to be written out, and the stream to be closed;
FILE
: a defined type for streams;
fopen
: opens a given file, associates a stream with it, and returns a pointer to the file structure associated with that stream;
fprintf
: places output on a given stream;
fscanf
: reads from a given stream;
getc
: returns the next character from a given input stream;
gets
: reads characters from the standard input stream into a string;
NULL
: a constant which designates a null pointer;
sprintf
: places output, followed by the null character, in consecutive bytes of a string;
stderr
: the standard error stream;
stdin
: the standard input stream;
stdout
: the standard output stream; and
ungetc
: pushes a character back onto a given input stream.
stdlib
exit
: closes any open files and terminates program execution;
EXIT_FAILURE
: a constant returned to the operating system to indicate that the program has terminated unsuccessfully;
EXIT_SUCCESS
: a constant returned to the operating system to indicate that the program has terminated successfully;
free
: frees storage earlier allocated;
malloc
: allocates storage; and
realloc
: reallocates storage.
string
strchr
: returns a pointer to the first occurrence of a given character in a given string, or a null pointer if it does not occur; and
strcmp
: returns zero if two given strings are identical.