Am Mittwoch, den 14.02.2007, 06:20 -0600 schrieb [EMAIL PROTECTED]: > > > [...] > > > > Sorry, I had simply forgotten that. However, if you use strtol, > errno > > will be set properly. > > ok ... that works with strtol, but what is if I want to scan floats? > Here, strtod, strtof, atof do NOT set errno or return an error when > the > number is too small or too big. > > Thanks for your help. > > Regards > Mathias hmm, you are right. In libc/stdlib/strtod.c, there is a #define that sets _STRTOD_ERRNO. You should check if this is set to "1". For older uClibc's, it is 0.
Regards, Erwin -- Dipl.-Ing. Erwin Authried Softwareentwicklung und Systemdesign _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
