Back to index

glibc  2.9
tst-rpmatch.c File Reference
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.


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

Function Documentation

int main ( int  argc,
char *  argv[] 

Definition at line 26 of file tst-rpmatch.c.

  setlocale (LC_ALL, argv[1]);

  if (rpmatch (argv[2]) != atol (argv[3]))
      fprintf (stderr,"Failed: Locale %s, String %s, Exp: %s, got %d\n",
              argv[1], argv[2], argv[3], rpmatch (argv[2]));
      exit (EXIT_FAILURE);
  return EXIT_SUCCESS;

Here is the call graph for this function: