Made a memory allocator (crude)
This commit is contained in:
parent
b5c7344851
commit
941bac31b6
53 changed files with 469 additions and 146 deletions
|
|
@ -99,7 +99,7 @@ t_usize me_printf(t_const_str fmt, ...)
|
|||
va_end(args);
|
||||
len = str_len(str);
|
||||
write(1, str, len);
|
||||
free(str);
|
||||
me_free(str);
|
||||
return (len);
|
||||
}
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ t_usize me_eprintf(t_const_str fmt, ...)
|
|||
va_end(args);
|
||||
len = str_len(str);
|
||||
write(2, str, len);
|
||||
free(str);
|
||||
me_free(str);
|
||||
return (len);
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue