Why Nostr? What is Njump?
2024-03-16 13:46:14

CONFIG.SYS: LOADHIGH on Nostr: Turbo C "Huh?" moment of the day: There's an implicitly defined `memset()` that ...

Turbo C "Huh?" moment of the day: There's an implicitly defined `memset()` that compiles/links fine with *any* number of parameters.

Pass only two arguments (destination and value) and it'll overwrite an undefined number of bytes.

The solution is to a) of course not forget to include "mem.h" or "string.h" (because then you *do* get errors) and b) don't forget any arguments.

#retroprotip

Author Public Key
npub1hqq8c67fc5jqgxpvxfyytktymvsvuz5r7gs8vf9uyf2e9wzygdnq8v3rj4