ack/lang/cem/libcc.ansi/locale/setlocale.c

27 lines
379 B
C
Raw Normal View History

1989-06-14 16:11:19 +00:00
/*
* 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;
}
}