OpenMPI  0.1.1
numtostr.h File Reference
#include "opal_config.h"

Go to the source code of this file.

Functions

OPAL_DECLSPEC char * opal_ltostr (long num)
 Convert a long integer to a char* string. More...
 
OPAL_DECLSPEC char * opal_dtostr (double num)
 Convert a double to a char* string. More...
 

Function Documentation

OPAL_DECLSPEC char* opal_dtostr ( double  num)

Convert a double to a char* string.

The returned buffer is allocated by calling malloc() and must be freed by the caller.

Parameters
num(IN) Input number
Returns
String containing number (NULL on failure)
OPAL_DECLSPEC char* opal_ltostr ( long  num)

Convert a long integer to a char* string.

The returned buffer is allocated by calling malloc() and must be freed by the caller.

Parameters
num(IN) Input number
Returns
String containing number (NULL on failure)