Mail Archives: djgpp/1997/10/17/00:19:19
On Thu, 16 Oct 1997 18:34:27 +0000 in comp.os.msdos.djgpp John M. Aldrich
(fighteer AT cs DOT com) wrote:
: My idea for a solution to the problem would be to create a buffer large
: enough to store at least part of the long string and use sprintf() one
: chunk at a time. I can't, offhand, imagine any situation where this
: would be necessary, though...
In writing a set of addon routines for Allegro, providing formatted text
output a la *printf, I needed something like this; I just used a very large
buffer in the end, but I'm changing it to use the fprintf to /dev/nul
instead. Presumably hacking through the library sources would also be a
solution, extracting what code I needed, but I think it's better to use
existing code where possible.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -