Changeset 0ffbed9 in mainline for uspace/lib/posix/stdlib.c


Ignore:
Timestamp:
2011-06-19T17:49:29Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5974661
Parents:
f48b637 (diff), 32fb6944 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix.

File:
1 edited

Legend:

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

    rf48b637 r0ffbed9  
    3737
    3838#include "stdlib.h"
    39 #include "common.h"
     39#include "internal/common.h"
    4040
    4141/**
     
    4646 * @param compare
    4747 */
    48 void posix_qsort(void *array, size_t count, size_t size, int (*compare)(const void *, const void *))
     48void posix_qsort(void *array, size_t count, size_t size,
     49    int (*compare)(const void *, const void *))
    4950{
    5051        // TODO
     
    7677
    7778/**
    78  *
     79 * Converts a string representation of a floating-point number to
     80 * its native representation. See posix_strtold().
     81 *
    7982 * @param nptr
    8083 * @param endptr
     
    8386float posix_strtof(const char *restrict nptr, char **restrict endptr)
    8487{
    85         // TODO
    86         not_implemented();
     88        return (float) posix_strtold(nptr, endptr);
    8789}
    8890
    8991/**
    90  *
     92 * Converts a string representation of a floating-point number to
     93 * its native representation. See posix_strtold().
     94 *
    9195 * @param nptr
    9296 * @param endptr
     
    9599double posix_strtod(const char *restrict nptr, char **restrict endptr)
    96100{
    97         // TODO
    98         not_implemented();
    99 }
    100 
    101 /**
    102  *
    103  * @param nptr
    104  * @param endptr
    105  * @return
    106  */
    107 long double posix_strtold(const char *restrict nptr, char **restrict endptr)
    108 {
    109         // TODO
    110         not_implemented();
     101        return (double) posix_strtold(nptr, endptr);
    111102}
    112103
Note: See TracChangeset for help on using the changeset viewer.