Re: anyone been able to page_string the where command?

From: root (root@grumpy.net-connect.net)
Date: 03/27/95


On Mon, 27 Mar 1995, John Neil wrote:

> On Mon, 27 Mar 1995, Michael K. Lee wrote:
> 
> > Date: Mon, 27 Mar 1995 13:11:44 -0800 (PST)
> > From: Michael K. Lee <mklee@Sun2.IS.csupomona.edu>
> > To: Circle Mailing List <circle@pvv.unit.no>
> > Subject: anyone been able to page_string the where command?
> > 
> > 
> > Has anyone been able to page break the immortal where command?
> > the print_objects... function sprintfs to a buf, then sends_to_char
> > right away.  Can we forget about the send_to_char in the function
> > and add page_string(ch->desc, buf) instead, at the end?
> > 
> > mike
> > 
> 
> You can, but you have to take great care with the SIZE of the buffer.  It 
> is very easy for a where command to get a buffer size which is way out of 
> hand.  The checks you have to put on the size must be very conservative.
> 
> --John
> 

That is why you sprintf(buf + strlen(buf), "blah blah");



This archive was generated by hypermail 2b30 : 12/07/00 PST