electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

how to add int in some char array


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> how to add int in some char array
Author Message
ehsanelahimirza



Joined: 24 Feb 2006
Posts: 430
Helped: 33


Post30 May 2006 8:56   

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
Back to top
Google
AdSense
Google Adsense




Post30 May 2006 8:56   

Ads




Back to top
alzomor



Joined: 09 Jun 2005
Posts: 626
Helped: 31
Location: Cairo


Post30 May 2006 9:40   

Re: how to add int in some char array


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.edaboard.com
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> how to add int in some char array
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
char=int (9)
Char Array to double (5)
convert double to char array (3)
C - Unsigned Int to Unsigned Char Conversion (3)
INT ARRAY IN C (6)
How to improve Fmax ? want to add some registers (7)
VHDL Query - entity port as int array, not std_logic_vector (1)
how to use 'long long int' or 'unsigned long int' in C prog (1)
int and short int (5)
how to send an (int) on 8-bit port in 8051?qk help pls (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS