Character and String Input/Output
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fgetc │ "stdio.h" │ fgetc
│ Reads a │
│ │ │ │ character │
│ │ │ │ from a │
│ │ │ │ specified │
│ │ │ │ input │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fgets │ "stdio.h" │ fgets
│ Reads a │
│ │ │ │ string │
│ │ │ │ from a │
│ │ │ │ specified │
│ │ │ │ input │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fputc │ "stdio.h" │ fputc
│ Prints a │
│ │ │ │ character │
│ │ │ │ to a │
│ │ │ │ specified │
│ │ │ │ output │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fputs │ "stdio.h" │ fputs
│ Prints a │
│ │ │ │ string to │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ output │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ getc │ "stdio.h" │ getc
- getchar │ Reads a │
│ │ │ │ character │
│ │ │ │ from a │
│ │ │ │ specified │
│ │ │ │ input │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ getchar │ "stdio.h" │ getc
- getchar │ Reads a │
│ │ │ │ character │
│ │ │ │ from │
│ │ │ │ stdin. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ gets │ "stdio.h" │ gets
│ Reads a │
│ │ │ │ line from │
│ │ │ │ stdin. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ putc │ "stdio.h" │ putc
- putchar │ Prints a │
│ │ │ │ character │
│ │ │ │ to a │
│ │ │ │ specified │
│ │ │ │ output │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ putchar │ "stdio.h" │ putc
- putchar │ Prints a │
│ │ │ │ character │
│ │ │ │ to │
│ │ │ │ stdout. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ puts │ "stdio.h" │ puts
│ Prints a │
│ │ │ │ string to │
│ │ │ │ stdout. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ungetc │ "stdio.h" │ ungetc
│ Pushes a │
│ │ │ │ character │
│ │ │ │ back onto │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ input │
│ │ │ │ stream. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Formatted Input/Output]
[Next: Wide Character and String Input/Output]