🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

strtol question.

#14356
From: MWP
Date: Mon, 18 Aug 2003 11:05
9 lines
1115 bytes
Hi all,

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?

Thanks.
Technical Details
Message-ID: <3f40b30b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ecc2b4647792de18,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-18 04:12:03 PST
From: "MWP" <mwp@overclockers.com.au>
Sender: "MWP" <mwp@overclockers.com.au>
Reply-To: "MWP" <mwp@overclockers.com.au>
Subject: strtol question.
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 203.16.214.242 203.16.214.242    
X-Forwarded-For: unknown, 150.101.65.127
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f40b30b$1@newsgroups.borland.com>
Date: 18 Aug 2003 04:05:47 -0700
X-Trace: newsgroups.borland.com 1061204747 207.105.83.65 (18 Aug 2003 04:05:47 -0700)
Lines: 9
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail