bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Question concerning c-ctype, c-strcase, c-strcasestr an


From: Bruno Haible
Subject: Re: [bug-gnulib] Question concerning c-ctype, c-strcase, c-strcasestr and c-strstr modules
Date: Fri, 15 Sep 2006 14:38:11 +0200
User-agent: KMail/1.9.1

Yoann Vandoorselaere wrote:
> The c-ctype, c-strcase, c-strcasestr and c-strstr modules seem only to
> implement their replacement functions using a "c_" prefix. 
> 
> However, there is no autoconf test implemented by these modules that
> redefine the original function (in case it is missing) to point to their
> GnuLib replacement. 
> 
> Is this behavior expected ?

Yes. These modules are not "replacement" functions; they define functions
of their own, not specified by POSIX.

c-ctype, c-strcase, c-strcasestr are useful if you explicitly don't
want locale-dependent behaviour (for example, if you know that the strings
are ASCII strings and you want treat 'i' and 'I' the same, even if
operating in a Turkish locale).

c-strstr is a speedup for strstr, applicable in certain cases (see
c-strstr.h for details).

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]