char* npModelNewCenter(char* curs, float* x, float* y, float* z, void* dataRef) { // pNPgeolist geolist = npGetGeolist(dataRef); pNPgeolist geolist = NULL; //(*geoId) = npstrtoi(&idVal); // lv, if letter, returns 0 (*x) = npstrtof(&curs); (*y) = npstrtof(&curs); (*z) = npstrtof(&curs); return curs; }
//string to 64bit float conversion //------------------------------------------------------------------------------ double npatod (const char *p) { char* curs = (char*)p; //currently we just wrap our npstrtof... //a small amount of time could be saved by copying the function here... return (double)npstrtof (&curs); }