Date: Mon, 4 Jun 2001 10:14:41 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Gorden cc: djgpp AT delorie DOT com Subject: Re: atoi() and ANSI C ???? In-Reply-To: <9ff685$cn@netnews.hinet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.