This file contains hidden or 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
| /* | |
| minimul required to print hello world. | |
| also can compile with | |
| cc helloworld.s | |
| and exec with ./a.out | |
| or use the linking | |
| as helloworld.s -o helloworld.o | |
| ld helloworld.o -o helloworld -l System -syslibroot `xcrun -sdk macosx --show-sdk-path` -e _main -arch arm64 | |
| */ |
This file contains hidden or 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
| #include <locale.h> | |
| #include <wchar.h> | |
| #include <stdio.h> | |
| int main() { | |
| // Set the locale to the user's default locale | |
| setlocale(LC_ALL, ""); | |
| // wchat_t is a wide character type | |
| wchar_t c1 = L'ò'; |
OlderNewer