Formatted Input/Output
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fprintf │ "stdio.h" │ fprintf
│ Formats │
│ │ │ │ and │
│ │ │ │ prints │
│ │ │ │ charac- │
│ │ │ │ ters to │
│ │ │ │ the │
│ │ │ │ output │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fscanf │ "stdio.h" │ fscanf
│ Reads │
│ │ │ │ data from │
│ │ │ │ a stream │
│ │ │ │ into │
│ │ │ │ locations │
│ │ │ │ given by │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ printf │ "stdio.h" │ printf
│ Formats │
│ │ │ │ and │
│ │ │ │ prints │
│ │ │ │ charac- │
│ │ │ │ ters to │
│ │ │ │ stdout. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ scanf │ "stdio.h" │ scanf
│ Reads │
│ │ │ │ data from │
│ │ │ │ stdin │
│ │ │ │ into │
│ │ │ │ locations │
│ │ │ │ given by │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ sprintf │ "stdio.h" │ sprintf
│ Formats │
│ │ │ │ and │
│ │ │ │ writes │
│ │ │ │ charac- │
│ │ │ │ ters to a │
│ │ │ │ buffer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ sscanf │ "stdio.h" │ sscanf
│ Reads │
│ │ │ │ data from │
│ │ │ │ a buffer │
│ │ │ │ into │
│ │ │ │ locations │
│ │ │ │ given by │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ vfprintf │ "stdarg.h"" │ vfprintf
│ Formats │
│ │ stdio.h" │ │ and │
│ │ │ │ prints │
│ │ │ │ charac- │
│ │ │ │ ters to │
│ │ │ │ the │
│ │ │ │ output │
│ │ │ │ stream │
│ │ │ │ using a │
│ │ │ │ variable │
│ │ │ │ number of │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ vprintf │ "stdarg.h"" │ vprintf
│ Formats │
│ │ stdio.h" │ │ and │
│ │ │ │ writes │
│ │ │ │ charac- │
│ │ │ │ ters to │
│ │ │ │ stdout │
│ │ │ │ using a │
│ │ │ │ variable │
│ │ │ │ number of │
│ │ │ │ argu- │
│ │ │ │ ments. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ vsprintf │ "stdarg.h"" │ vsprintf
│ Formats │
│ │ stdio.h" │ │ and │
│ │ │ │ writes │
│ │ │ │ charac- │
│ │ │ │ ters to a │
│ │ │ │ buffer │
│ │ │ │ using a │
│ │ │ │ variable │
│ │ │ │ number of │
│ │ │ │ argu- │
│ │ │ │ ments. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Stream Input/Output]
[Next: Character and String Input/Output]