posix.cfg: Added more tests.

This commit is contained in:
orbitcowboy 2022-04-20 15:27:14 +02:00
parent 1067cb6e5d
commit 8b90b2d0fd
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@
#include <wchar.h>
#include <string.h>
int nullPointer_wcsnlen(const wchar_t *s, size_t n)
{
// cppcheck-suppress nullPointer
(void)wcsnlen(NULL, n);
// No warning is expected
return wcsnlen(s, n);
}
int nullPointer_wcswidth(const wchar_t *s, size_t n)
{
// cppcheck-suppress nullPointer