make sure and pass the kernel ldflags when linking
[AROS.git] / compiler / stdc / setlocale.c
blobbd5e80d64946d2e4e4121a791ab26cb1a6493e44
1 /*
2 Copyright © 2003-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function localeconv().
6 */
8 #include <locale.h>
9 #include <string.h>
11 /*****************************************************************************
13 NAME */
14 #include <string.h>
16 char *setlocale(
18 /* SYNOPSIS */
19 int category,
20 const char *locale)
22 /* FUNCTION
24 INPUTS
25 category - category as defined in locale.h
26 locale - string representing "C"
28 RESULT
29 The lconv struct
31 NOTES
32 stdc.library only support "C" locale. So only NULL or
33 "C" are accepted for locale and this function does not
34 have an effect.
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 locale.h
43 INTERNALS
45 ******************************************************************************/
47 if (category < LC_ALL || category > LC_TIME)
48 return NULL;
50 if (locale == NULL || strcmp(locale, "C") == 0)
51 return "C";
53 return NULL;