bsearch of empty array

Doug Gwyn gwyn at smoke.brl.mil
Thu May 16 08:59:36 AEST 1991


In article <KERS.91May15154937 at cdollin.hpl.hp.com> kers at 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.



More information about the Comp.std.c mailing list