News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by hyc_symas on Wednesday April 15, 2020 @04:32PM (#22882678)
An analogous seprintf() would probably be a good thing to add too, where the buffer end is passed in instead of a buffer length. I would still have it return a pointer to the end of what was copied. Anyone can calculate the length if they need to, by subtracting the original pointer from the returned pointer.

    char *seprintf(char *str, char *end, const char *format, ...);

There are no comments on this comment yet.