Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
15
thirdparty/hedley/test/returns-non-null.c
vendored
Normal file
15
thirdparty/hedley/test/returns-non-null.c
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static const char* foo = "bar\n";
|
||||
|
||||
HEDLEY_RETURNS_NON_NULL
|
||||
static const char* get_string(void) {
|
||||
return foo;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
const char* s = get_string();
|
||||
return HEDLEY_STATIC_CAST(int, strlen(s));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue