[MPlayer-dev-eng] [PATCH 2/4] String handling audit/cleanup take 2

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Mar 8 12:17:55 CET 2007


Hello,
On Thu, Mar 08, 2007 at 12:02:11PM +0100, Reimar D?ffinger wrote:
[...]
> So, and to be productive I was thinking of something like that (I did
> not think long about it, so bear with any bugs/stupidity and ignore the
> stupid names):
> add a
> mpsnprintf that behaves like snprintf except that it aborts when the
> string does not fit
> BUFPRINTF macro for static arrays that does mpsnprintf(buf, sizeof(buf), ...)

Forgot: and something similar to asprintf, this should simplify quite a
bit of code.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list