we can now read c style string arrays

This commit is contained in:
2021-06-02 00:45:26 +02:00
parent b1e39cdb75
commit e4f07ffe2f
7 changed files with 77 additions and 2 deletions

6
ctest/bindings.h Normal file
View 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
View 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;
}