comparison README.md @ 5:a6ab6d9c0dac

readme: fix typos, str: remove outdated note our allocator is actually fairly smart now :)
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Dec 2023 16:26:46 -0500
parents c2408abb258a
children 0c98b46eaf73
comparison
equal deleted inserted replaced
4:c2408abb258a 5:a6ab6d9c0dac
17 #include <stdlib.h> 17 #include <stdlib.h>
18 #include "edl.h" 18 #include "edl.h"
19 19
20 int main() { 20 int main() {
21 /* open the file */ 21 /* open the file */
22 FILE* file = fopen("intensive care unit.TXT", "rb"); 22 FILE* file = fopen("MyProject.TXT", "rb");
23 if (!file) 23 if (!file)
24 return 1; 24 return 1;
25 25
26 /* get filesize */ 26 /* get filesize */
27 fseek(file, 0L, SEEK_END); 27 fseek(file, 0L, SEEK_END);
40 fclose(file); 40 fclose(file);
41 41
42 /* pass it to libedl */ 42 /* pass it to libedl */
43 EDL edl = EDL_parse(data, fsize + 1); 43 EDL edl = EDL_parse(data, fsize + 1);
44 44
45 /* dump the EDL to */ 45 /* dump the EDL to a string */
46 char* edl_str = EDL_dump(edl); 46 char* edl_str = EDL_dump(edl);
47 printf("%s\n", edl_str); 47 printf("%s\n", edl_str);
48 free(edl_str); 48 free(edl_str);
49 49
50 /* free our memory */ 50 /* free our memory */