Convert from int to string

Non-platform specific questions.

Convert from int to string

Postby motorollin » Wed Aug 15, 2007 2:36 pm

How can I convert an integer variable to a string variable?
motorollin
 
Posts: 54
Joined: Sun Aug 12, 2007 8:05 am
Score: 1 Give a positive score

Postby metal_pt » Wed Aug 15, 2007 9:53 pm

Just use
Code: Select all
sprintf(stringvar,"%d",intvar);
]v[eta[_ - Using GE since June, 15 2007
Currently using v1.3.8 Registered
metal_pt
 
Posts: 117
Joined: Sat Jun 16, 2007 12:57 pm
Location: Sintra, Portugal
Score: 2 Give a positive score

Postby motorollin » Thu Aug 16, 2007 9:07 am

Thank you!
motorollin
 
Posts: 54
Joined: Sun Aug 12, 2007 8:05 am
Score: 1 Give a positive score

Postby metal_pt » Thu Aug 16, 2007 7:54 pm

No prob, glad I could Help :) !!!
]v[eta[_ - Using GE since June, 15 2007
Currently using v1.3.8 Registered
metal_pt
 
Posts: 117
Joined: Sat Jun 16, 2007 12:57 pm
Location: Sintra, Portugal
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest