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

ntostr.h File Reference

#include <string>

Include dependency graph for ntostr.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by 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.

Referenced by DfaMaker::mkstate().

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


FSM [ August, 2001]