Back to index

glibc  2.9
Functions
scanf1.c File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 5 of file scanf1.c.

{
  int i,n,r;

  n = i = r = -1;
  r = sscanf ("1234:567", "%d%n", &i, &n);
  printf ("%d %d %d\n", r, n, i);
  if (r != 1 || i != 1234 || n != 4)
    abort ();
  return 0;
}

Here is the call graph for this function: