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 !! */
15 epoc_spawn( char *cmd, char *cmdline) {
17 TRequestStatus status;
20 rc = p.Create( _L( cmd), _L( cmdline));
27 User::WaitForRequest( status);
28 if (status!=KErrNone) {
35 /* Workaround for defect atof(), see java defect list for epoc */
36 double epoc_atof( char* str) {
39 while (TChar( *str).IsSpace()) {
44 TInt err = lex.Val( aRes, TChar( '.'));
48 void epoc_gcvt( double x, int digits, unsigned char *buf) {
51 trel.iPlaces = digits;
52 trel.iPoint = TChar( '.');
54 TPtr result( buf, 80);
57 result.Append( TChar( 0));