scanf


scanf

The C library routine that reads data from the standard input stream stdin into the locations given by each entryin its argument list. The first argument is a format stringwhich controls interpretation of the input and each subsequentargument points to a variable with a type that corresponds toa type specifier in the format-string.

Unix manual page: scanf(3).