Skip to content

Commit

Permalink
Fix putc declaration
Browse files Browse the repository at this point in the history
`putc` takes a character and a stream. `putchar` is the one that takes
only a character.
  • Loading branch information
tekknolagi committed Apr 15, 2022
1 parent 915c069 commit 8812039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librt/libc/include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern FILE *stdout;
extern FILE *stderr;

// Character IO:
void putc(char c);
int putc(int character, FILE* stream);
//void puts(char *s);
char getc();
int fgetc(FILE* stream);
Expand Down

0 comments on commit 8812039

Please sign in to comment.