General/RndTvDta/rnd_tv_dta.cpp
int atoiExt(char* str)
{
	char *end;
	long value = strtol(str, &end, 10);
	if((end == str) || (*end != '\0'))
		throw string("Error: non-numeric value for a numeric argument.\n");
	return (int)value;
}
//converts string to int, throws error if the string is unconvertable
converts string to int, throws error if the string is unconvertable
converts string to int throws error if the string is unconvertable
int atoiExt(char* str)
{
	char *end;
	long value = strtol(str, &end, 10);
	if((end == str) || (*end != '\0'))
		throw string("Error: non-numeric value for a numeric argument.\n");
	return (int)value;
}
int atoiExt ( char * str ) { char * end ; long value = strtol ( str , & end , 10 ) ; if ( ( end == str ) || ( * end != ' \0 ' ) ) throw string ( " \n " ) ; return ( int ) value ; }
converts string to int, throws error if the string is unconvertable
converts string to int throws error if the string is unconvertable