Skip to content

Commit

Permalink
bandaid over issue with remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
BlastBrothers committed Aug 24, 2024
1 parent c4cff60 commit e885bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"cmath": "cpp",
"*.inc": "cpp",
"*.def": "cpp",
"vdp_key.h": "c"
"vdp_key.h": "c",
"list": "c",
"stdbool.h": "c"
}
}
3 changes: 2 additions & 1 deletion examples/fileio/src/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ void cat_file( FILE *fp );
void read_file( FILE *fp, int num, int pos, int origin, const char *message );
int seek_file( FILE *fp, int pos, int origin, const char *message );
void putint( int i );

int remove(const char *fname); //TODO this fixes a compiler error, even though this is also in stdio.h. Why is this necessary?

const int max_line_len = 82; // 80 characters + CR/LF pair


int main( void )
{
char fname_str[ max_line_len+1 ];
Expand Down

0 comments on commit e885bfa

Please sign in to comment.