External and mémory
Jean-Pierre
jean-pierre.soto at wanadoo.fr
Fri Sep 14 06:44:02 EDT 2007
Do I have to free retstring after calling an external ?
Is there something wrong in this code. Memory grow up slowly ...
XRev_codphone(char* args[],int nargs,char ** retstring,bool
*Pass,bool *Error){
*pass=False ; *Error=False ; *retstring=(char *)malloc (100);
if (nargs==1){
sprintf (*retstring,"%s %s",codePhone(args[0]),phoneComment);
} else strcpy(*retstring,"Rev_codePhone : Erreur nombre
d'argument incorrect");
}
More information about the use-livecode
mailing list