home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / locale / setlocal.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-29  |  345 b   |  14 lines

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include <locale.h>
  3. #include <string.h>
  4.  
  5. char *setlocale(int category, const char *locale)
  6. {
  7.   static char CLOCALE[] = "C";
  8.   if (locale == 0)
  9.     return CLOCALE;
  10.   if (strcmp(locale, CLOCALE) && strcmp(locale, "POSIX") && locale[0])
  11.     return 0;
  12.   return CLOCALE;
  13. }
  14.