Join Nostr
2025-06-11 15:41:50 UTC
in reply to

Julia Evans on Nostr: nprofile1q…4pppr oh man explaining pointers sounds like a huge weird project. ...

oh man explaining pointers sounds like a huge weird project. recently I realized that the way pointers are used in C is a bit weird compared to in other languages (where instead of having a function return a value in a "normal" way, instead you'll just have a void* function which you pass a pointer to the struct that you want it to populate with the return value)

that's maybe just a consequence of C not having a garbage collector but it's still kind of weird