Merge pull request #2387 from colinleroy/sim65-implement-remove

Implement __sysremove for sim65
This commit is contained in:
Bob Andrews
2024-01-28 16:53:29 +01:00
committed by GitHub
5 changed files with 106 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
FILE *in, *out;
char buf[32];
@@ -34,6 +35,7 @@ int main(int argc,char **argv)
printf("Error: file pointer should be in error state\n");
}
fclose(out);
unlink(outfile_path);
in = fopen(INFILE, "rb");
if (in == NULL) {