Back to index

glibc  2.9
Functions
scanf11.c File Reference
#include <ctype.h>
#include <stdio.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 24 of file scanf11.c.

{
  int exc = 0;
  int retc;
  float f;
  int d;
  char str[] = "x 1";
  int c;

  for (c = 1; c < 127; ++c)
    if (! isdigit (c) && ! isspace (c))
      {
       str[0] = c;
       retc = sscanf (str, "%e %d", &f, &d);
       if (retc != 0)
         {
           printf ("sscanf (\"%s\", \"%%e %%d\", ...) == %d, not 0\n",
                  str, retc);
           exc = 1;
         }
      }

  return exc;
}

Here is the call graph for this function: