init
This commit is contained in:
		
							
								
								
									
										16
									
								
								tests/io/test-lt-file.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								tests/io/test-lt-file.c
									
									
									
									
									
										Normal 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; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user