Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ntostr.C File Reference

#include <stdio.h>
#include "ntostr.h"

Include dependency graph for ntostr.C:

Include dependency graph

Go to the source code of this file.

Functions

string ntostr (int i)
 Return string representation of numeric data object. More...


Function Documentation

string ntostr int i
 

Return string representation of numeric data object.

Could be overloaded to cover e.g. double, float, short..

Definition at line 7 of file ntostr.C.

00007               {
00008 char buf[20]; // more than enough for 32bit integers.
00009 sprintf(buf,"%d",i);
00010 return string(buf);
00011 }


FSM [ August, 2001]