model_server/els/src/str_utils.cxx
/* extract the first num from char* from and return pointer to a next char
   after num or NULL if an error occured */
extract the first num from char* from and return pointer to a next char
after num or NULL if an error occured
extract the first num from char * from and return pointer to a next char after num or NULL if an error occured
char* extract_num(char* from, int& num)
{
    char* ptr[1];
    num = (int)strtol(from, ptr, 10);
    if (ptr[0] == from)
	return NULL;
    else
	return ptr[0];
}
char * extract_num ( char * from , int & num ) { char * ptr [ 1 ] ; num = ( int ) strtol ( from , ptr , 10 ) ; if ( ptr [ 0 ] == from ) return NULL ; else return ptr [ 0 ] ; }
extract the first num from char* from and return pointer to a next char
after num or NULL if an error occured
extract the first num from char * from and return pointer to a next char after num or NULL if an error occured
/* if failed, ptr[0] == from, otherwise it points to the char on 
    which it stopped */