hi
i have problem in the function strchr() in this code
float recherche(char code,float val) {
char ptr=buffer; // start at the beginning of buffer
while((long)ptr > 1 && (long)ptr < (long)buffer+taille) { // walk to the end
if(ptr==code) { // if you find code on your walk,
return atof(ptr+1); // convert the digits that follow into a float and return it
}
ptr=strchr(ptr,' ')+1; // take a step from here to the letter after the next space
}
return val; // end reached, nothing found, return default val.
}