Changeset 23896

Show
Ignore:
Timestamp:
02/06/08 12:11:02 (10 months ago)
Author:
axeld
Message:

* Added gcvt() implementation - this fixes bug #1757.
* Added gcvt(), ecvt(), and fcvt() prototypes to stdlib.h - they are all

marked legacy, but are still part of the POSIX standard, so we might want
to implement them if the need arises.

Location:
haiku/trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/headers/posix/stdlib.h

    r21975 r23896  
    11/* 
    2  * Copyright 2002-2007, Haiku Inc. All Rights Reserved. 
     2 * Copyright 2002-2008, Haiku Inc. All Rights Reserved. 
    33 * Distributed under the terms of the MIT License. 
    44 */ 
     
    6767extern int              mkstemp(char *templat); 
    6868 
     69extern char             *ecvt(double value, int digits, int *_decimalPoint, int *_sign); 
     70extern char             *fcvt(double value, int precision, int *_decimalPoint, 
     71                                        int *_sign); 
     72extern char             *gcvt(double value, int digits, char *buffer); 
     73 
    6974/* environment variables */ 
    7075extern char             **environ; 
     
    132137extern void             *bsearch(const void *key, const void *base, size_t numElements, 
    133138                                        size_t sizeOfElement, _compare_function); 
    134 extern int              heapsort(void *base, size_t numElements, size_t sizeOfElement, _compare_function); 
    135 extern int              mergesort(void *base, size_t numElements, size_t sizeOfElement, _compare_function); 
    136 extern void             qsort(void *base, size_t numElements, size_t sizeOfElement, _compare_function); 
    137 extern int              radixsort(u_char const **base, int numElements, u_char const *table, u_int endByte); 
    138 extern int              sradixsort(u_char const **base, int numElements, u_char const *table, u_int endByte); 
     139extern int              heapsort(void *base, size_t numElements, size_t sizeOfElement, 
     140                                        _compare_function); 
     141extern int              mergesort(void *base, size_t numElements, size_t sizeOfElement, 
     142                                        _compare_function); 
     143extern void             qsort(void *base, size_t numElements, size_t sizeOfElement, 
     144                                        _compare_function); 
     145extern int              radixsort(u_char const **base, int numElements, 
     146                                        u_char const *table, u_int endByte); 
     147extern int              sradixsort(u_char const **base, int numElements, 
     148                                        u_char const *table, u_int endByte); 
    139149 
    140150/* misc math functions */ 
  • haiku/trunk/src/system/libroot/posix/stdlib/Jamfile

    r15191 r23896  
    1313        env.c 
    1414        exit.c 
     15        gcvt.c 
    1516        heapsort.c  
    1617        merge.c