Static Public Member Functions | List of all members
Celartem::Printf< char > Struct Template Reference

#include <cel_printf.h>

Static Public Member Functions

static char * sprintf (const char *format,...)
 
static char * vsprintf (const char *format, std::va_list ap)
 

Detailed Description

template<>
struct Celartem::Printf< char >

Printf Implementation for char.

Member Function Documentation

static char* Celartem::Printf< char >::sprintf ( const char *  format,
  ... 
)
static

This function works much like as sprintf except it allocates the buffer using std::malloc function. The details of the parameters are identical to _vsnwprintf.
This function is a portable version of sprintf and it does not depend on platform specific implementation. It is not affected by any locales.

Parameters
formatFormat specification.
apPointer to list of parameters.
Returns
Pointer to the allocated string. It should be released using std::free function.
static char* Celartem::Printf< char >::vsprintf ( const char *  format,
std::va_list  ap 
)
static

This function works much like as vsprintf except it allocates the buffer using std::malloc function. The details of the parameters are identical to _vsnwprintf.
This function is a portable version of sprintf and it does not depend on platform specific implementation. It is not affected by any locales.

Parameters
formatFormat specification.
apPointer to list of parameters.
Returns
Pointer to the allocated string. It should be released using std::free function.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo