|
From: Ioannis V. <iv...@em...> - 2003-04-01 03:13:29
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Khalid El-Kary > Sent: Tuesday, April 01, 2003 5:43 AM > To: Dev...@li... > Subject: [Dev-C++] integer to string > > > Hi fellows, > > I'm wondering if there's a possible way to turn an integer to > its string > representation in C > > //I want to get a string "5" out of f > int f=5; > > thanx in advance. > > Regards, > Khalid Al-Kary #include <stdio.h> /* ... */ int f=7; char s[5]; sprintf(s, "%d", f); Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |