|
Candidate standard C functions for assignment 6
Standard C library for Input/Output with streams (stdio.h)
- printf
- Print formatted data to stdout
- fprintf
- print formatted data to a stream
- scanf
- Read formatted data from stdin
- sscanf
- Read formatted data from string
- fgets
- Get a string from a stream
- fopen
- Open a file
- fclose
- Close a stream
Standard C library to manipulate C strings (string.h)
- strchr
- Find character in string
- strncpy
- Copy characters from one string to another
- strcmp
- Compare two strings
character types (ctype.h)
toupper convert letter to upper case
Nice man pages and examples
Miscellaneous
The double-quote character '"' must be preceeded with the escape character '\'
in a string. For example, to print the line
- #include "inst.h"
assuming inst_c_fp points to
inst.c, and obtained by calling to fopen():
fprintf(inst_c_fp, "#include \"inst.h\"\n");
|
Maintained by
Efi Fogel.
Last modified: May 19 2003.
|