3 ms·
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 seatbel
by froh 6y 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/fmemopen.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/f...