pounce is a user on cmpwn.com. You can follow them or interact with them if you have an account anywhere in the fediverse.
pounce @pounce

C protip of the day:
Tired of having pointers that lay around in your functions that /anyone/ can dereference to get your data?!

use the `--->` operator for one-time use struct pointers!

Try it out!
```
<stdlib.h>
<stdio.h>
struct foo {
int a;
};
int main() {
struct foo *bar = malloc(sizeof(struct foo));
bar--->a = 5; // ok
printf("%d", bar--->a); // Data changed!
return 0;
}
```

· Web · 2 · 0

tired: using ->
wired: using -->
inspired: using --->