Jun. 2nd, 2005
For C geeks only.
Jun. 2nd, 2005 11:07 amI know it sounds like a job-interview question, but it isn't.
How do you implement the snprintf() function, on a system that only has sprintf(), strncpy(), strncat(), etc?
Update: Okay, I got around it somehow, by providing specific solutions in specific cases.
Update 2: System library found; solves the problem by rewriting snprintf() from scratch.
How do you implement the snprintf() function, on a system that only has sprintf(), strncpy(), strncat(), etc?
Update: Okay, I got around it somehow, by providing specific solutions in specific cases.
Update 2: System library found; solves the problem by rewriting snprintf() from scratch.