Skip to content

Instantly share code, notes, and snippets.

View multitudes's full-sized avatar
🎯
Focusing

laurent b multitudes

🎯
Focusing
View GitHub Profile
@multitudes
multitudes / helloworld.s
Last active May 2, 2024 17:09
helloworld.s
/*
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
*/
@multitudes
multitudes / locale.c
Created May 4, 2024 07:48
extended ascii and display locale
#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'ò';