we can now read c style string arrays
This commit is contained in:
6
ctest/bindings.h
Normal file
6
ctest/bindings.h
Normal file
@ -0,0 +1,6 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void files_exist(const char *const *f, size_t len);
|
15
ctest/test.c
Normal file
15
ctest/test.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern void files_exist(const char *const *f, size_t len);
|
||||
|
||||
int main(int argc, char const* argv[])
|
||||
{
|
||||
const char *a[2];
|
||||
a[0] = "Hello";
|
||||
a[1] = "World!";
|
||||
files_exist(a, 2);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user