> Greetings,
>
>   Here is the situation. I want to generate 2 notes in the same function
with slightly different content.  One containing a quest for mortals and one
with the answers to imms.  I have defined both BUFFERS as
>
> BUFFER *text;
> BUFFER *immtext;
>
> Along the line of the code I append_buf the lines I want....
>
> sprintf(buf, "@[EMAIL PROTECTED])
@[EMAIL PROTECTED]",(i+1),remove_color(location->description));
>                 add_buf(text,buf);
>                 sprintf(buf2, " Room %d) @R%s
(%s)@x\n\r",(i+1),location->name,location->area->name);
>                 add_buf(immtext,buf2);
>
> Using gdb I notice that it chokes on the add_buf(immtext,buf)
                                           ^^^^^^^^^^^^^^^^^^^^
Do you mean "add_buf(immtext,buf2);"?  Just wanting to be sure we're looking
at the same part..

A little more information would be helpful...
1) How are you initializing text, immtext, buf and buf2?
2) How does gdb choke?  Upon what variables?  Can you copy/paste the output
from 'backtrace', 'list', and printint the valiables involved?

>
> Is it possible to do what I want?  Which is to send two notes at the same
time?  I can post the entire function if anyone wants, but it is long.
>

It shouldn't be a problem to send as many notes as you want at once, it's
just a matter of doing it right. :-)

Tony


Reply via email to