Hash :
ccb59e4c
Author :
Date :
2023-04-19T17:59:03
wcsncmp: Work around two ISO C compliance bugs on several platforms. * lib/wchar.in.h (wcsncmp): Consider REPLACE_WCSNCMP. * lib/wcsncmp-impl.h (wcsncmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Test whether wcsncmp works for all wide characters. Set REPLACE_WCSNCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WCSNCMP. * modules/wcsncmp (Status, Notice): Un-obsolete this module. (configure.ac): Consider REPLACE_WCSNCMP. * doc/posix-functions/wcsncmp.texi: Mention the two bugs.
Description:
wcsncmp() function: compare two wide strings.
Files:
lib/wcsncmp.c
lib/wcsncmp-impl.h
m4/wcsncmp.m4
Depends-on:
wchar
configure.ac:
gl_FUNC_WCSNCMP
gl_CONDITIONAL([GL_COND_OBJ_WCSNCMP],
[test $HAVE_WCSNCMP = 0 || test $REPLACE_WCSNCMP = 1])
gl_WCHAR_MODULE_INDICATOR([wcsncmp])
Makefile.am:
if GL_COND_OBJ_WCSNCMP
lib_SOURCES += wcsncmp.c
endif
Include:
<wchar.h>
License:
LGPL
Maintainer:
all