Skip to content

Commit 8812039

Browse files
committed
Fix putc declaration
`putc` takes a character and a stream. `putchar` is the one that takes only a character.
1 parent 915c069 commit 8812039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

librt/libc/include/stdio.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern FILE *stdout;
3232
extern FILE *stderr;
3333

3434
// Character IO:
35-
void putc(char c);
35+
int putc(int character, FILE* stream);
3636
//void puts(char *s);
3737
char getc();
3838
int fgetc(FILE* stream);

0 commit comments

Comments
 (0)