posix.cfg: Added more test for wcpncpy().

This commit is contained in:
orbitcowboy 2022-04-22 08:23:17 +02:00
parent 097438f308
commit 5d26d62698
1 changed files with 9 additions and 0 deletions

View File

@ -226,6 +226,15 @@ void invalidFunctionArg_fseeko(FILE* stream, off_t offset, int origin)
(void)fseeko(stream, offset, SEEK_END);
}
wchar_t *nullPointer_wcpncpy(wchar_t *dest, const wchar_t *src, size_t n)
{
// cppcheck-suppress nullPointer
(void)wcpncpy(NULL, src, n);
// cppcheck-suppress nullPointer
(void)wcpncpy(dest, NULL, n);
return wcpncpy(dest, src, n);
}
int nullPointer_utimes(const char *path, const struct timeval times[2])
{
// cppcheck-suppress nullPointer