dotgnu-pnet-commits
[Top][All Lists]
Advanced

[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 \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]