Back to index

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

Go to the source code of this file.

Functions

char * crypt ()
 main (int argc, char **argv)

Function Documentation

char* crypt ( )
main ( int  argc,
char **  argv 
)

Definition at line 32 of file ufc.c.

  { char *s;
    unsigned long i,iterations;

    if(argc != 2) {
      fprintf(stderr, "usage: ufc iterations\n");
      exit(1);
    }
    argv++;
    iterations = atoi(*argv);
    printf("ufc: running %d iterations\n", iterations);

    for(i=0; i<iterations; i++)
      s=crypt("foob","ar");
    if(strcmp(s, "arlEKn0OzVJn.") == 0)
      printf("OK\n");
    else {
      printf("wrong result: %s!!\n", s);
      exit(1);
    }
    exit(0);
  }

Here is the call graph for this function: