model_server/els/src/str_utils.cxx
/* allocate enough space for the new string and copy it */
allocate enough space for the new string and copy it
allocate enough space for the new string and copy it
char* my_strcpy(char*& to, const char* from)
{
    if (from)
    {
	to = new char [strlen(from) + 1];
	if (to == NULL) return NULL;
	strcpy(to, from);
	return to;
    }
    else
    {
	to = NULL;
	return NULL;
    }
}
char * my_strcpy ( char * & to , const char * from ) { if ( from ) { to = new char [ strlen ( from ) + 1 ] ; if ( to == NULL ) return NULL ; strcpy ( to , from ) ; return to ; } else { to = NULL ; return NULL ; } }
allocate enough space for the new string and copy it
allocate enough space for the new string and copy it