Subject: Re: A solution for termcap lossage?
To: Wolfgang Solfrank <email@example.com>
From: Simon Burge <firstname.lastname@example.org>
Date: 04/27/1999 09:37:30
Wolfgang Solfrank wrote:
> just one thought:
> > Something that comes to mind is to store a
> >pointer to a larger buffer (if needed) in the last sizeof(ptr) bytes
> >(maybe preceded by a magic number of some sort) at the very end of
> >the user-supplied 1kB buffer. User supplied code scan still manually
> >look at the first 1kb-sizeof(ptr)-sizeof(magic)-NUL characters of the
> >buffer - I'm sure I've seen some game source do this instead of using
> >tgetstr(), tgetnum(), etc.
> Probably coded just like some capability, maybe (but not neccessarily)
> even in ascii, like zz#12345678.
Cool! sprintf(buf, "zz#%p", ptr). Free beer to Wolfgang today :-)