What is Nostr?
Robert Edmonds /
npub1fyt…pzzf
2025-01-18 19:48:48

Robert Edmonds on Nostr: Oh, huh. Not sure why I thought that would work. ``` #include <stdbool.h> #include ...

Oh, huh. Not sure why I thought that would work.

```
#include <stdbool.h>
#include <stdio.h>

union u {
char __please_gcc_15_zero_all_these_bits_not_just_some_of_them__[sizeof(union u)];
bool a;
char b;
short c;
int d;
};

int main(void)
{
union u foo = {0};
printf("union has %zd bytes:\n", sizeof(union u));
for (size_t i = 0; i < sizeof(foo); i++) {
printf("%02x ", *(((unsigned char *)&foo) + i));
}
putchar('\n');
return 0;
}
```
Author Public Key
npub1fyt2s8l2fj0mzvth8newwn2vwuujln7qf6q9hy5rpaehywxnc49qwxpzzf