extracting message

Jan Kaluza hanzz.k at gmail.com
Sun Mar 29 08:27:34 EDT 2009


You should also test if message is not NULL before accessing it.

On Sun, Mar 29, 2009 at 2:21 PM, Jan Kaluza <hanzz.k at gmail.com> wrote:
> Hi,
> I don't know what are you trying to do, but I will try to help you.
>
> This is definition of function which will take message from
> sending_im_msg signal
> static char* modifyMessage(char * msg);
>
> And this is how you can call it:
> static void sending_im_msg(PurpleAccount *account, const char
> *receiver,  char **message){
>   char * newMsg;
>   newMsg = modifyMessage(*message);
>   g_free(*message);
>   *message = newMsg;
> }
>
> The code above is untested, but It should work. :)
>
> Jan "HanzZ" Kaluza
>
> On Sun, Mar 29, 2009 at 12:51 PM, arun kumar <arunkumar0107 at gmail.com> wrote:
>> how to extract the message from the buffer in sending_im_msg signal? i
>> actually need to send it  as an argument  to another function which
>> takes a char* as an argument ...but buffer is a char ** pointer.....
>>
>>
>>
>>
>>
>> cheers,
>> arun
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at pidgin.im
>> http://pidgin.im/cgi-bin/mailman/listinfo/devel
>>
>




More information about the Devel mailing list