Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
froh
on March 4, 2021
|
parent
|
context
|
favorite
| on:
It Can Happen to You
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The number of bytes parsed can be fetched with the scanf %n format specifier.