Initial commit, first project from 0 with xmake

This commit is contained in:
2026-05-26 22:28:06 -06:00
commit 910f63bf07
6 changed files with 192 additions and 0 deletions

9
src/lae_strings.c Normal file
View File

@@ -0,0 +1,9 @@
#include "lae_strings.h"
#include <stdint.h>
#include <stdlib.h>
struct ByteStr {
uint8_t* buf;
size_t len;
size_t cap;
};

18
src/main.c Normal file
View File

@@ -0,0 +1,18 @@
#include "mylib.h"
#include <stdio.h>
#include <stdlib.h>
int main(void) {
MyLib *lib = mylib_create();
if (!lib) {
fprintf(stderr, "Error: could not create MyLib\n");
return EXIT_FAILURE;
}
int result = mylib_do_something(lib, 42);
printf("Result: %d\n", result);
mylib_destroy(lib);
return EXIT_SUCCESS;
}