defined why2_fopen

This commit is contained in:
Václav Šmejkal 2023-02-05 18:26:17 +01:00
parent 6e7ea8b6f5
commit eb9033dedd
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -142,6 +142,15 @@ char *why2_strdup(char *string)
return allocated; return allocated;
} }
void *why2_fopen(char *name, char *modes)
{
void *opened = fopen(name, modes);
push_to_list(opened, FOPEN);
return opened;
}
void why2_deallocate(void *pointer) void why2_deallocate(void *pointer)
{ {
//VARIABLES //VARIABLES