posix.cfg: Added support for wcsncasecmp().
This commit is contained in:
parent
0560a946a8
commit
478aa6754b
|
@ -1993,6 +1993,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- https://man7.org/linux/man-pages/man3/strncasecmp.3.html -->
|
||||||
<!-- int strncasecmp(const char *s1, const char *s2, size_t n); -->
|
<!-- int strncasecmp(const char *s1, const char *s2, size_t n); -->
|
||||||
<function name="strncasecmp">
|
<function name="strncasecmp">
|
||||||
<pure/>
|
<pure/>
|
||||||
|
@ -2013,6 +2014,27 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
<valid>0:</valid>
|
<valid>0:</valid>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- https://man7.org/linux/man-pages/man3/wcsncasecmp.3.html -->
|
||||||
|
<!-- int wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) -->
|
||||||
|
<function name="wcsncasecmp">
|
||||||
|
<pure/>
|
||||||
|
<use-retval/>
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<leak-ignore/>
|
||||||
|
<returnValue type="int"/>
|
||||||
|
<arg nr="1" direction="in">
|
||||||
|
<not-null/>
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-null/>
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3" direction="in">
|
||||||
|
<not-bool/>
|
||||||
|
<valid>0:</valid>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
<!-- ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); -->
|
<!-- ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); -->
|
||||||
<function name="sendfile">
|
<function name="sendfile">
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
|
|
@ -31,6 +31,15 @@
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
int nullPointer_wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||||
|
{
|
||||||
|
// cppcheck-suppress nullPointer
|
||||||
|
(void)wcsncasecmp(NULL,s2,n);
|
||||||
|
// cppcheck-suppress nullPointer
|
||||||
|
(void)wcsncasecmp(s1,NULL,n);
|
||||||
|
return wcsncasecmp(s1,s2,n);
|
||||||
|
}
|
||||||
|
|
||||||
int uninitvar_wcwidth(const wchar_t c)
|
int uninitvar_wcwidth(const wchar_t c)
|
||||||
{
|
{
|
||||||
wchar_t wc;
|
wchar_t wc;
|
||||||
|
|
Loading…
Reference in New Issue