TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JO GERAERTS
from: PETER GARNER
date: 1998-03-28 00:26:00
subject: convert char to int...

JG> In a program I want to use a ini file. I've got a predefined
JG> function that reads the value and stores it in a string (char
JG> str[2]) But the value is a number is an I want to convert it to a
JG> integer. How can I do that. I tried this: 
Look up atoi and atol in the docs that came with your compiler!
Best of Luck
Peter
---
 þ KWQ/2 1.2i þ She's dead, Jim! But still warm, shall we flip a coin?.
---------------
* Origin: St. Louis Users Group (1:100/4)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.