🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14359

Re: strtol question.

#14359
From: Ed Mulroy [TeamB]
Date: Mon, 18 Aug 2003 12:03
16 lines
1529 bytes
The documentation states that 0 is the return value from strtol when there
is an error.

If you look in the source code for strtol you will be able to verify that it
also sets the errno variable.

.  Ed

> MWP wrote in message
> news:3f40b30b$1@newsgroups.borland.com...
>
> Under UNIX i can see if "strtol" reads a valid number by
> testing "errno". It seems the BCB version doesnt use "errno".
>
> So how can i know if the value is actually "0" or if its an
> invalid number?
Technical Details
Message-ID: <3f40c083$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f40b30b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ecc2b4647792de18
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-18 05:11:00 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f40b30b$1@newsgroups.borland.com>
Subject: Re: strtol question.
Date: Mon, 18 Aug 2003 08:03:03 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3f40c083$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061208195 24.74.175.102 (18 Aug 2003 05:03:15 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail