posix.cfg: Improved configuration for wcsnrtombs().

This commit is contained in:
orbitcowboy 2022-04-25 15:54:44 +02:00
parent 89ae22c0e1
commit 31d0b0b73b
2 changed files with 2 additions and 3 deletions

View File

@ -40,9 +40,8 @@
<not-bool/> <not-bool/>
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
<arg nr="5" direction="in"> <arg nr="5" direction="inout">
<not-uninit/> <not-uninit/>
<not-null/>
</arg> </arg>
</function> </function>
<!-- https://man7.org/linux/man-pages/man3/aio_read.3.html --> <!-- https://man7.org/linux/man-pages/man3/aio_read.3.html -->

View File

@ -53,7 +53,7 @@ size_t nullPointer_wcsnrtombs(char *restrict dest, const wchar_t **restrict src,
(void)wcsnrtombs(NULL,src,nwc,len,ps); (void)wcsnrtombs(NULL,src,nwc,len,ps);
// cppcheck-suppress nullPointer // cppcheck-suppress nullPointer
(void)wcsnrtombs(dest,NULL,nwc,len,ps); (void)wcsnrtombs(dest,NULL,nwc,len,ps);
// cppcheck-suppress nullPointer // It is allowed to set the last arg to NULL
(void)wcsnrtombs(dest,src,nwc,len,NULL); (void)wcsnrtombs(dest,src,nwc,len,NULL);
return wcsnrtombs(dest,src,nwc,len,ps); return wcsnrtombs(dest,src,nwc,len,ps);
} }