[Top][All Lists]

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

[Bug-gnulib] why no strchr or strrchr?

From: Oskar Liljeblad
Subject: [Bug-gnulib] why no strchr or strrchr?
Date: Mon, 23 Aug 2004 12:06:59 +0200
User-agent: Mutt/1.5.6+20040803i

Is there any particular reason strchr and strrchr are not implemented
in gnulib? autoconf suggests using these tests for strchr and strrchr:

          AC_CHECK_FUNCS(strchr strrchr)

header file:
          #if STDC_HEADERS
          # include <string.h>
          # if !HAVE_STRCHR
          #  define strchr index
          #  define strrchr rindex
          # endif
          char *strchr (), *strrchr ();

So maybe there would be a point implementing it - either as a real
function or just as strchr.h?


Oskar Liljeblad (address@hidden)

reply via email to

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