Article View: comp.std.c
Article #2888Re: bsearch of empty array
From: Doug Gwyn
Date: Wed, 15 May 1991 22:59
Date: Wed, 15 May 1991 22:59
7 lines
823 bytes
823 bytes
In article <KERS.91May15154937@cdollin.hpl.hp.com> kers@hplb.hpl.hp.com (Chris Dollin) writes: >If bsearch is called with $nmemb == 0$, is $base$ required to point to a >legitimate array, or can it be $NULL$ ? In general, when the C standard requires an argument to a library function to be a pointer to an array of XXX, it means it. Null pointers are allowed only where specified.
Technical Details
Message-ID:
<16167@smoke.brl.mil>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!decwrl!fernwood!uupsi!cmcl2!adm!smoke!gwynReferences:
<KERS.91May15154937@cdollin.hpl.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!decwrl!fernwood!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: bsearch of empty array Message-ID: <16167@smoke.brl.mil> Date: 15 May 91 22:59:36 GMT References: <KERS.91May15154937@cdollin.hpl.hp.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7