[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem in library code using library functions
From: |
Ulrich Drepper |
Subject: |
Re: Problem in library code using library functions |
Date: |
05 Feb 2001 14:34:47 -0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) |
"Paolo Faraboschi" <address@hidden> writes:
> Here's a symptom of a problem that may be the proverbial "tip of the
> iceberg"...
> The following seemingly innocuous code hits the assertion (using glibc-2.2 on
> a linux system):
>
> #include <assert.h>
> strrchr() { assert(0); }
> main() {}
That's perfectly fine since you must not redefine any of the ISO C
functions.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------