ack/lang/cem/libcc.ansi/locale/setlocale.c
1989-06-14 16:11:19 +00:00

27 lines
379 B
C

/*
* setlocale - set the programs locale
*/
/* $Header$ */
#include <locale.h>
struct lconv _lc;
char *
setlocale(int category, const char *locale)
{
if (strcmp(locale, "C")) return (char *)NULL;
switch(category) {
case LC_ALL:
case LC_COLLATE:
case LC_CTYPE:
case LC_MONETARY:
case LC_NUMERIC:
case LC_TIME:
return locale;
default:
return (char *)NULL;
}
}