confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] cant get the result after callback function


From: .
Subject: [Confuse-devel] cant get the result after callback function
Date: Tue, 21 Oct 2003 21:09:47 +0400

Hi all.

A have a callback function that changes the result value. I have tried
some methods to return new result, but when i do cfg_getstr() i always
got NULL.

I tried:

1) (char*)result=value;

2) result=(char*)calloc(1,strlen(value)+1);
   strncpy(result,value,strlen(value));
   
3) static char *newstr;
   ...
   newstr=(char*)calloc(1,strlen(value)+1);
   strncpy(newstr,value,strlen(value));
   result=newstr;

How to store the string into *result pointer inside callback
function ?

-- 
Best regards,
 .                          mailto:address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]