Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mental Block - Long to string

Status
Not open for further replies.

dickiebird

Programmer
Feb 14, 2002
758
GB
I must have had a heavy weekend - 'cos I've lost it......
How do I convert/copy/transfer a long's value into a string ????
eg
char s_ev_no[10];
long ev_no;
ev_no=1444532
.........s_ev_no........ ????

TIA ;-) Dickie Bird
db@dickiebird.freeserve.co.uk
 
sprintf(s_ev_no,"%ld",ev_no);

;)

hnd
hasso55@yahoo.com

 
Thanks hnd
About 10 lines further down, I'm doing something similar
(which I've done 1000 times before)
Just had a failed cerebral connection or two !
[wavey] Dickie Bird
db@dickiebird.freeserve.co.uk
 
This problem happens to me too some times.

In Germany there is a Idiom:"If you are in hurry, make a break".

;)
hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top