From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: sprintf() string length? Date: 16 Oct 1997 23:39:26 GMT Organization: Oxford University, England Lines: 18 Message-ID: <6268je$a32$1@news.ox.ac.uk> References: <3 DOT 0 DOT 16 DOT 19971014214406 DOT 2c573b3e AT hem1 DOT passagen DOT se> <3445D623 DOT 605E AT ukc DOT ac DOT uk> <6256nc$jtt$1 AT star DOT cs DOT vu DOT nl> <34465E33 DOT 719A AT cs DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 Merton College, Oxford