Changeset 102a729 in mainline for uspace/lib/posix/stdlib/strtold.c


Ignore:
Timestamp:
2011-07-20T19:43:22Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4cf8ca6
Parents:
087c8798
Message:

Various bugfixes in stdlib.h functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdlib/strtold.c

    r087c8798 r102a729  
    547547               
    548548                if (endptr != NULL) {
    549                         *endptr = (char *) &nptr[i + 3];
    550                 }
    551                 errno = ERANGE;
    552                 return negative ? -0.0l : +0.0l;
     549                        *endptr = (char *) nptr;
     550                }
     551                errno = EINVAL;
     552                return 0;
    553553        }
    554554       
Note: See TracChangeset for help on using the changeset viewer.