LONG ESLSUBAPI ProcessEslString( PHSTRING phString )
{
PSZ sString ;
LONG ReturnCode = OK ;
int size, copied;
sString = EslQueryStringAddr(phString) ;
// Allocate enough space to hold a COPY of
// the string. Do not try to update the memory
// occupied by the ESL String! Update the COPY.
size=strlen(sString);
sString=(char *)malloc(++size);
if(!sString)
return ERROR;
// Get a copy of the ESL string characters
copied=EslQueryStringChars(phString,sString,size);
ReturnCode = ProcessCString( sString ) ;
EslSetStringValue( phString, sString, strlen(sString) );
// free memory
free(sString);
if ( phString == NULL )
ReturnCode = ERROR ;
return ReturnCode ;
}