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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert long to char

Status
Not open for further replies.

medeirh

Programmer
May 22, 2002
3
BR
How can I convert a long variable to char?
 
use ltoa. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
well,"itoa" converts a long variable to a string.
Therefore,you should use something like:

long var;
char c;
c = (char)var;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top