Functions | |||
![]()  | ![]()  | void | putchar (char c) BANKED | 
![]()  | ![]()  | Put the character 'c' to stdout. | |
![]()  | ![]()  | void | printf (const char *format, ...) NONBANKED | 
![]()  | ![]()  | Print the string and arguments given by format to stdout. More... | |
![]()  | ![]()  | void | sprintf (char *str, const char *format, ...) NONBANKED | 
![]()  | ![]()  | Print the string and arguments given by format to a buffer. More... | |
![]()  | ![]()  | void | puts (const char *s) NONBANKED | 
![]()  | ![]()  | puts() writes the string s and a trailing newline to std out. | |
![]()  | ![]()  | char* | gets (char *s) BANKED | 
![]()  | ![]()  | gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with '\0'. More... | |
![]()  | ![]()  | char | getchar (void) BANKED | 
![]()  | ![]()  | getchar() gets a single character from stdin. | |
| void printf (const char * format, ...) | 
Print the string and arguments given by format to stdout.
Currently supported: %c (character), %u (unsigned int), %d (signed int), %x (unsigned int as hex), and %s (string). Does not return the number of characters printed.
| void sprintf (char * str, const char * format, ...) | 
Print the string and arguments given by format to a buffer.
Currently supported: %c (character), %u (unsigned int), %d (signed int), %x (unsigned int as hex), and %s (string). Does not return the number of characters printed.
| str | The buffer to print into. | 
| format | The format string as per printf. | 
| char * gets (char * s) | 
gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with '\0'.
No check for buffer overrun is per formed.
 1.0.0 written by Dimitri van Heesch,
 © 1997-1999