Back to index

glibc  2.9
Functions
scanf10.c File Reference
#include <stdio.h>
#include <string.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 scanf10.c.

{
  const char teststring[] = "<tag `word'>";
  int retc, a, b;

  retc = sscanf (teststring, "<%*s `%n%*s%n'>", &a, &b);

  printf ("retc=%d a=%d b=%d\n", retc, a, b);

  return retc == -1 && a == 6 && b == 12 ? 0 : 1;
}

Here is the call graph for this function: