Comment by froh
5 years ago
fmemopen is standard these days.
just wrap the string into a FILE, explicitly setting the buffer size to strlen(s), use fscanf the loop and fasten your seatbelts...
https://pubs.opengroup.org/onlinepubs/9699919799/functions/f...
No comments yet
Contribute on Hacker News ↗