Article View: comp.sys.ibm.pc
Article #43080Re: scanf problem in TC v2.01.
From: Stephen M. Dunn
Date: Mon, 26 Feb 1990 21:18
Date: Mon, 26 Feb 1990 21:18
14 lines
1364 bytes
1364 bytes
In article <2524@cs-spool.calgary.UUCP> marc@cpsc.UCalgary.CA (Marc Schroeder) writes:
$There IS a way around this. You don't even have to use atof() if you don't
$want to (I just gave up on it). You can use sscanf() instead (atof() probably
$just calls sscanf() anyways)..
Naw, it would be the other way around, since the purpose of atof is a
subset of the purpose of sscanf. What sscanf will do is take a chunk of
the string you feed it and send it to atof or atoi (or whatever, depending
on the desired result type) to be converted.
--
Stephen M. Dunn cs4g6ag@maccs.dcss.mcmaster.ca
<std_disclaimer.h> = "\nI'm only an undergraduate!!!\n";
****************************************************************************
I Think I'm Going Bald - Caress of Steel, Rush
Technical Details
Message-ID:
<25E99D18.13194@maccs.dcss.mcmaster.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!geac!maccs!cs4g6agReferences:
<204@sdscal.UUCP> <13317@cbnewsd.ATT.COM> <2524@cs-spool.calgary.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!geac!maccs!cs4g6ag From: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) Newsgroups: comp.sys.ibm.pc Subject: Re: scanf problem in TC v2.01. Message-ID: <25E99D18.13194@maccs.dcss.mcmaster.ca> Date: 26 Feb 90 21:18:16 GMT References: <204@sdscal.UUCP> <13317@cbnewsd.ATT.COM> <2524@cs-spool.calgary.UUCP> Reply-To: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) Organization: McMaster University, Hamilton, Ontario Lines: 14