delorie.com/archives/browse.cgi | search |
Date: | Mon, 4 Jun 2001 10:14:41 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Gorden <gorden AT ms9 DOT url DOT com DOT tw> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: atoi() and ANSI C ???? |
In-Reply-To: | <9ff685$cn@netnews.hinet.net> |
Message-ID: | <Pine.SUN.3.91.1010604101156.14670J-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Mon, 4 Jun 2001, Gorden wrote: > I try Borland C 3.1 a function > atoi(NULL); > the function return 0 > > But In The Djgpp > atoi(NULL); > Is dump error massage on screen Try that on Windows, and you probably will see no crash. It's a question of whether the OS catches NULL pointers or not. > So In Djgpp Can't use atoi(NULL) > > Right? No, you can't. You also can't pass NULL pointers to many other library functions, like strchr, strcpy, etc. Code which does that is buggy.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |