Advanced programmers advice needed.

I'd look at the headers for the text orientated libraries and see what sort of size buffers they reserve.