posix.cfg: Improved configuration for wcsnrtombs().
This commit is contained in:
parent
89ae22c0e1
commit
31d0b0b73b
|
@ -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 -->
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue