all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
13
Task/String-length/C/string-length-5.c
Normal file
13
Task/String-length/C/string-length-5.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
setlocale(LC_CTYPE, "");
|
||||
char moose[] = "møøse";
|
||||
printf("bytes: %d\n", sizeof(moose) - 1);
|
||||
printf("chars: %d\n", (int)mbstowcs(0, moose, 0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue