This commit is contained in:
2024-11-02 21:29:23 +08:00
commit f8431897e9
45 changed files with 785 additions and 0 deletions

16
tests/io/test-lt-file.c Normal file
View File

@@ -0,0 +1,16 @@
#include "latch/io/lt-file.h"
#include <stdio.h>
int main(int argc, char *argv[]){
LT_File* f = lt_file_open("test.txt", "w");
printf("LT_File size: %ld\n", sizeof(LT_File));
printf("File: %p\n", f);
printf("File name: %s\n", f->name->data);
printf("File path: %s\n", f->path->data);
printf("File size: %ld\n", f->size);
printf("file create time %ld\n", f->create_time);
printf("file modify time %ld\n", f->modify_time);
f->close(f);
return 0;
}