Changeset 102a729 in mainline for uspace/lib/posix/stdlib


Ignore:
Timestamp:
2011-07-20T19:43:22Z (14 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.

Location:
uspace/lib/posix/stdlib
Files:
2 edited

Legend:

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

    r087c8798 r102a729  
    190190                                /* overflow */
    191191                                errno = ERANGE;
    192                                 result = max_value;
     192                                result = real_max_value;
    193193                                break;
    194194                        }
  • 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.