pnote->text=strdup(text->string);

Don't forget to free the buffer and pnote-text when done.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 12:21 PM
To: [email protected]
Subject: Buffer and notes


Greetings,

  I've been using add_buf to create a mud note message. How do I assign it
to the pnote->text?  Should it look like..

pnote->text=strdup(text);

Seeing how i have assigned the var text as a BUFFER type.  Will this work or
do I need to do some manipulations?

I am getting some warnings on compile...

In function `speech_prog_remort_new':
mob_prog.c:1831: warning: passing arg 1 of `strlen' from incompatible
pointer type
mob_prog.c:1831: warning: passing arg 1 of `__strdup' from incompatible
pointer type

I think this is telling me that I need to do some manipluations...
Line 1831 is the pnote->text=strdup(text); line.....

any help is appreciated.

Keith


-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to