prog.c: In function 'handle_whitespace':
prog.c:14:4: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
setlocale(LC_ALL, "en_US.utf8");
^
prog.c:14:14: error: 'LC_ALL' undeclared (first use in this function)
setlocale(LC_ALL, "en_US.utf8");
^
prog.c:14:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:16:4: warning: implicit declaration of function 'mbstowcs' [-Wimplicit-function-declaration]
int i, len = mbstowcs(NULL,content,0)+1;
^
prog.c:19:4: error: unknown type name 'wchar_t'
wchar_t unicode_content[len];
^
prog.c:21:4: error: unknown type name 'wchar_t'
wchar_t *normalized_content = malloc(len * sizeof(wchar_t *));
^
prog.c:21:4: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
prog.c:21:34: warning: incompatible implicit declaration of built-in function 'malloc'
wchar_t *normalized_content = malloc(len * sizeof(wchar_t *));
^
prog.c:21:54: error: 'wchar_t' undeclared (first use in this function)
wchar_t *normalized_content = malloc(len * sizeof(wchar_t *));
^
prog.c:21:63: error: expected expression before ')' token
wchar_t *normalized_content = malloc(len * sizeof(wchar_t *));
^
prog.c:28:6: warning: implicit declaration of function 'iswspace' [-Wimplicit-function-declaration]
if(iswspace(unicode_content[i])){
^
prog.c:42:4: warning: implicit declaration of function 'wcstombs' [-Wimplicit-function-declaration]
wcstombs(newstr,normalized_content,len * sizeof(char *));
^
prog.c:44:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(normalized_content);
^
prog.c:44:4: warning: incompatible implicit declaration of built-in function 'free'