OpenMPI  0.1.1
numtostr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
3  * University Research and Technology
4  * Corporation. All rights reserved.
5  * Copyright (c) 2004-2005 The University of Tennessee and The University
6  * of Tennessee Research Foundation. All rights
7  * reserved.
8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9  * University of Stuttgart. All rights reserved.
10  * Copyright (c) 2004-2005 The Regents of the University of California.
11  * All rights reserved.
12  * $COPYRIGHT$
13  *
14  * Additional copyrights may follow
15  *
16  * $HEADER$
17  */
18 /**
19  * @file
20  */
21 
22 #ifndef OPAL_NUMTOSTR_UTIL
23 #define OPAL_NUMTOSTR_UTIL
24 
25 #include "opal_config.h"
26 /**
27  * Convert a long integer to a char* string. The returned buffer is
28  * allocated by calling malloc() and must be freed by the caller.
29  *
30  * @param num (IN) Input number
31  * @return String containing number (NULL on failure)
32  */
33 OPAL_DECLSPEC char* opal_ltostr(long num);
34 
35 
36 /**
37  * Convert a double to a char* string. The returned buffer is allocated
38  * by calling malloc() and must be freed by the caller.
39  *
40  * @param num (IN) Input number
41  * @return String containing number (NULL on failure)
42  */
43 OPAL_DECLSPEC char* opal_dtostr(double num);
44 
45 #endif /* OPAL_NUMTOSTR_UTIL */
OPAL_DECLSPEC char * opal_dtostr(double num)
Convert a double to a char* string.
Definition: numtostr.c:48
OPAL_DECLSPEC char * opal_ltostr(long num)
Convert a long integer to a char* string.
Definition: numtostr.c:27