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

atol conversion function

Status
Not open for further replies.

rohanem

Programmer
Aug 16, 2002
64
US
Hi,
I have a variable in Pro*C that is defined as "long"
Does populating the variable matter with/without using the atol function?..What exactly does atol function do?

Thanks
 
Hi ,

Using or not using atol can very much matter.

atol converts a string in to a long ( a-to-l means ascii to long ). So, when you are assigning a string value ( means something stored in a char array or char* ) to this veriable atol is required.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top