From 56f51c59af7d24ad6f7aa53ff1007d798001abbc Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 11 Feb 2023 23:47:11 +0100 Subject: [PATCH] Add comments about locale dependent functions. --- m-core.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/m-core.h b/m-core.h index 5f1ce712..934289c3 100644 --- a/m-core.h +++ b/m-core.h @@ -30,9 +30,9 @@ #include #include #include -#include +#include /* For toupper, tolower, isprint, isspace */ #include -#include /* For abort, malloc, realloc, free, strtol, strtoul, strtoll, strtoull, strtod, strtold, rand */ +#include /* For abort, malloc, realloc, free, strtol, strtoul, strtoll, strtoull, strtof, strtod, strtold, rand */ /* By default, always use stdio. Can be turned off in specific environment if needed by defining M_USE_STDIO to 0 */ @@ -57,6 +57,12 @@ # define M_USE_SMALL_NAME 1 #endif +/* Used functions of the libc which are locale dependent: + toupper, tolower, isprint, isspace + strtol, strtoul, strtoll, strtoull, strtof, strtod, strtold + printf, fprintf, fscanf + Theses functions may behave differently in function of the locale. +*/ /***************************************************************/ /************************ Compiler Macro ***********************/