[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where can I find stdlib.c to check the bsearch() implementation?



On 12/7/2011 6:38 AM, Teodor MICU wrote:
> Hi,
> 
> I would like to see how bsearch() function is implemented in GNU C
> library. I see that it is declared in <stdlib.h> but I couldn't find
> the corresponding "stdlib.c" file anywhere in the Debian archive (i.e.
> with "apt-file search stdlib.c").
> 
> I've also downloaded the 'eglibc' source package but I don't see any
> "stdlib.c" file. Can you tell me where the file is?
> 
> Thanks
> 
> 
> PS: I didn't considered that the implementation of the C standard
> library functions are not actually available somewhere in Debian
> archive.
> 
> 

The bsearch implementation is located in the glibc or eglibc source
in the file stdlib/bsearch.c.

Cheers,
Carlos.


Reply to: