Path: 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: Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article 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.