Message-ID: <3B1BB32B.DED5DC11@earthlink.net> From: Martin Ambuhl X-Mailer: Mozilla 4.76 [en] (Win95; U) X-Accept-Language: en,zh-CN,fr,de-CH,ru MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: atoi() and ANSI C ???? References: <9ff685$cn AT netnews DOT hinet DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 Date: Mon, 04 Jun 2001 16:08:24 GMT NNTP-Posting-Host: 209.244.180.241 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread2.prod.itd.earthlink.net 991670904 209.244.180.241 (Mon, 04 Jun 2001 09:08:24 PDT) NNTP-Posting-Date: Mon, 04 Jun 2001 09:08:24 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Mon, 04 Jun 2001 09:06:28 PDT (newsmaster1.prod.itd.earthlink.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 > The memory Pointer NULL(0) > I have see the source code > So In Djgpp Can't use atoi(NULL) > > Right? Not only DJGPP, but C generally. atoi() is defined to operate on the string pointed to by its argument. You are responsible for providing such an argument, and NULL is not one.