#include <string>
Include dependency graph for ntostr.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
string | ntostr (int i) |
Return string representation of numeric data object. More... |
|
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 } |