[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/support numformat.c,NONE,1.1 Makefile.am
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/support numformat.c,NONE,1.1 Makefile.am,1.37,1.38 |
Date: |
Sun, 03 Nov 2002 14:33:29 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv24075/support
Modified Files:
Makefile.am
Added Files:
numformat.c
Log Message:
Single and Double .ToString()
--- NEW FILE ---
/*
* numformat.c - Number formatting support
*
* Copyright (C) 2002 Free Software Foundation, Inc,
*
* Contributed by Rich Baumann
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
#include <stdio.h>
#include "il_utils.h"
#ifdef __cplusplus
extern "C" {
#endif
char *ILFormatReal(double value, char *format, int buflen)
{
char *retval = malloc(sizeof(char)*buflen);
#ifdef HAVE_SNPRINTF
snprintf(retval,buflen,format,value);
#else
sprintf(retval,format,value);
#endif
return retval;
}
#ifdef __cplusplus
};
#endif
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/Makefile.am,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** Makefile.am 3 Nov 2002 00:29:02 -0000 1.37
--- Makefile.am 3 Nov 2002 19:33:25 -0000 1.38
***************
*** 33,36 ****
--- 33,37 ----
mutex.c \
no_defs.c \
+ numformat.c\
pt_defs.c \
queue.c \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/support numformat.c,NONE,1.1 Makefile.am,1.37,1.38,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.1787,1.1788 configure.in,1.82,1.83
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/engine lib_numformat.c,NONE,1.1 Makefile.am,1.46,1.47 internal.c,1.33,1.34 int_table.c,1.28,1.29 int_proto.h,1.26,1.27
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.1787,1.1788 configure.in,1.82,1.83
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/engine lib_numformat.c,NONE,1.1 Makefile.am,1.46,1.47 internal.c,1.33,1.34 int_table.c,1.28,1.29 int_proto.h,1.26,1.27
- Index(es):