how to add int in some char array

Status
Not open for further replies.

ehsanelahimirza

Full Member level 6
Joined
Feb 24, 2006
Messages
334
Helped
28
Reputation
56
Reaction score
7
Trophy points
1,298
Activity points
3,570
how to add an int to a char *

hi all

i want to add 3 int variables
year
month
date

in a char array like

year_month_date

how i colud do that plz help me
 

Hi

IN C
convert each value to string using function like ecvt
then concatenate the 3 strings using function like strcat

Salam
Hossam Alzomor
www.i-g.org
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…