Lephenixnoir
d105b1d60a
These extend the stub locale; strcoll is simply strcmp and strxfrm is simply strncpy.
9 lines
173 B
C
9 lines
173 B
C
#include <string.h>
|
|
#include <locale.h>
|
|
|
|
size_t strxfrm(char * restrict dest, char const * restrict src, size_t n)
|
|
{
|
|
if(dest) strncpy(dest, src, n);
|
|
return strlen(src);
|
|
}
|