A function in the C programming language used in text mode applications to read input from stdin.

unsigned int scanf(data type, void *)

example of usage:

int main() {
int myNumber;
...
printf("Please enter a number: ");
scanf("%d", &myNumber);
...
}

scanf() returns the number of ints (in this case) received by stdin and store the entered number at the memory address of myNumber.