Return ptrdiff_t, not int, since it's a buffer size. Reindent/reparen some macros to a more Gnuish style.
Attach a file by drag & drop or click to upload