00001 // $Id: ntostr.C,v 1.2 2001/08/04 09:05:30 dvermeir Exp $ 00002 #include <stdio.h> // for sprintf() 00003 00004 #include "ntostr.h" 00005 00006 string 00007 ntostr(int i) { 00008 char buf[20]; // more than enough for 32bit integers. 00009 sprintf(buf,"%d",i); 00010 return string(buf); 00011 } 00012 00013