News for hackers. Stuff that matters.
Re:It Can Happen to You by froh on Thursday March 04, 2021 @04:05PM (#26348305)
fmemopen takes the buffer length, and there is no need to have the buffer \0 terminated, so instead of strlen you can also just give the buffer size.

The number of bytes parsed can be fetched with the scanf %n format specifier.

There are no comments on this comment yet.