#include <stdio.h> int scanf(const char *format, ...); int fscanf(FILE *stream, const char *format, ...); int sscanf(const char *str, const char *format, ...);
Examples
int ret; int n,m; ret = scanf("%d%d", &n, &m);
The return value is the number of successful conversions.