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 authored and astralaster committed Aug 26, 2024
1 parent e231416 commit 6b04434
Showing 1 changed file with 2 additions and 1 deletion.
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 6b04434

Please sign in to comment.