Skip to content

Commit 4bf827e

Browse files
committed
std.cfg: Added support bsearch_s() which was introduced with C11
1 parent 1548bf2 commit 4bf827e

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

cfg/std.cfg

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4259,7 +4259,40 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
42594259
</arg>
42604260
<arg nr="2"/>
42614261
</function>
4262-
<!-- void* bsearch(const void* key, const void* base, size_t num, size_t size, int(*compar)(const void*,const void*));-->
4262+
<!-- void* bsearch_s( const void *key, const void *ptr , rsize_t count, rsize_t size, int (*comp)(const void *, const void *, void *), void *context ); since C11-->
4263+
<function name="bsearch_s">
4264+
<use-retval/>
4265+
<pure/>
4266+
<returnValue type="void *"/>
4267+
<noreturn>false</noreturn>
4268+
<leak-ignore/>
4269+
<arg nr="1" direction="in">
4270+
<not-null/>
4271+
<not-uninit/>
4272+
</arg>
4273+
<arg nr="2" direction="in">
4274+
<not-null/>
4275+
<not-uninit/>
4276+
<minsize type="argvalue" arg="3"/>
4277+
</arg>
4278+
<arg nr="3" direction="in">
4279+
<not-uninit/>
4280+
<valid>0:</valid>
4281+
</arg>
4282+
<arg nr="4" direction="in">
4283+
<not-uninit/>
4284+
<valid>0:</valid>
4285+
</arg>
4286+
<arg nr="5" direction="in">
4287+
<not-null/>
4288+
<not-uninit/>
4289+
</arg>
4290+
<arg nr="6" direction="in">
4291+
<not-null/>
4292+
<not-uninit/>
4293+
</arg>
4294+
</function>
4295+
<!-- void* bsearch ( const void* key, const void* base , size_t num, size_t size, int(*compar)(const void*,const void*));-->
42634296
<function name="bsearch,std::bsearch">
42644297
<use-retval/>
42654298
<pure/>

0 commit comments

Comments
 (0)