clang -O2 -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations wchar/wcsnlen.c -o wchar/wcsnlen -D_POSIX_C_SOURCE=202405L -lm -lintl wchar/wcsnlen.c:5:42: error: use of undeclared identifier 'wcsnlen'; did you mean 'wcslen'? size_t (*foo)(const wchar_t *, size_t) = wcsnlen; ^~~~~~~ wcslen /usr/include/wchar.h:115:8: note: 'wcslen' declared here size_t wcslen(const wchar_t *); ^ wchar/wcsnlen.c:5:10: error: incompatible pointer types initializing 'size_t (*)(const wchar_t *, size_t)' with an expression of type 'size_t (const wchar_t *)' [-Werror,-Wincompatible-pointer-types] size_t (*foo)(const wchar_t *, size_t) = wcsnlen; ^ ~~~~~~~ 2 errors generated.