2 * Copyright (c) 1999 Olaf Flebbe o.flebbe@gmx.de
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Artistic License, as specified in the README file.
9 /* This is C++ Code !! */
19 /* Workaround for defect strtoul(). Values with leading + are zero */
21 unsigned long int epoc_strtoul(const char *nptr, char **endptr,
23 if (nptr && *nptr == '+')
25 return strtoul( nptr, endptr, base);
28 void epoc_gcvt( double x, int digits, unsigned char *buf) {
31 trel.iPlaces = digits;
32 trel.iPoint = TChar( '.');
34 TPtr result( buf, 80);
37 result.Append( TChar( 0));