Mercurial > gnulib
view doc/c-locale.texi @ 40212:8da9577294da
unistr/*, uniconv/*: Fix undefined behaviour.
Reported by Jeffrey Walton <noloader@gmail.com>.
* lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
* lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
* lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
* lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 09 Mar 2019 00:01:47 +0100 |
parents | 99c5c7bed4f9 |
children |
line wrap: on
line source
@node String Functions in C Locale @section Character and String Functions in C Locale The functions in this section are similar to the generic string functions from the standard C library, except that @itemize @item They behave as if the locale was set to the "C" locale, even when the locale is different, and/or @item They are specially optimized for the case where all characters are plain ASCII characters. @end itemize @menu * c-ctype:: * c-strcase:: * c-strcaseeq:: * c-strcasestr:: * c-strstr:: * c-strtod:: * c-strtold:: @end menu @node c-ctype @subsection c-ctype @include c-ctype.texi @node c-strcase @subsection c-strcase @include c-strcase.texi @node c-strcaseeq @subsection c-strcaseeq @include c-strcaseeq.texi @node c-strcasestr @subsection c-strcasestr @include c-strcasestr.texi @node c-strstr @subsection c-strstr @include c-strstr.texi @node c-strtod @subsection c-strtod @include c-strtod.texi @node c-strtold @subsection c-strtold @include c-strtold.texi