Created
April 3, 2020 18:57
-
-
Save Silva97/1844ef64a45299537f3ab9f1285b91ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exemplo de impressão de caracteres Unicode em C. | |
#include <stdio.h> | |
#include <locale.h> | |
#include <wchar.h> | |
int main(void) | |
{ | |
wchar_t str[] = L"Oi ✌ cara! €€€"; | |
setlocale(LC_CTYPE, "pt_BR.utf8"); | |
printf("%ls\n", str); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment