[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:
configure.ac:
AC_HEADER_STDC
AC_CHECK_FUNCS(strchr strrchr)
header file:
#if STDC_HEADERS
# include <string.h>
#else
# if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
# endif
char *strchr (), *strrchr ();
#endif
So maybe there would be a point implementing it - either as a real
function or just as strchr.h?
Regards,
Oskar Liljeblad (address@hidden)
- [Bug-gnulib] why no strchr or strrchr?,
Oskar Liljeblad <=