| delorie.com/archives/browse.cgi | search |
| From: | "Edmund Horner" <ejrh AT paradise DOT net DOT nz> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <39CABE68 DOT D5AA584B AT netzero DOT net> |
| Subject: | Re: Extract a value from a string? |
| Lines: | 18 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| Organization: | Paradise Net |
| Message-ID: | <969595461.718378@shelley.paradise.net.nz> |
| Cache-Post-Path: | shelley.paradise.net.nz!unknown AT 203-96-149-252 DOT tnt1 DOT paradise DOT net DOT nz |
| X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
| Date: | Fri, 22 Sep 2000 16:07:00 +1200 |
| NNTP-Posting-Host: | 203.96.152.26 |
| X-Complaints-To: | newsadmin AT xtra DOT co DOT nz |
| X-Trace: | news.xtra.co.nz 969595462 203.96.152.26 (Fri, 22 Sep 2000 16:04:22 NZST) |
| NNTP-Posting-Date: | Fri, 22 Sep 2000 16:04:22 NZST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
char *str; // this is the string. int n; n = atoi (str); // method 1. sscans (str, "%d", &n); // method 2. "Kenneth A. Strom" <therelic AT netzero DOT net> wrote in message news:39CABE68 DOT D5AA584B AT netzero DOT net... > > How do you extract an integer value from a file line read in from an INI > to a string? > > Ken. > therelic AT netzero DOT net > > >
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |