Root/
Source at commit 1308 created 12 years 8 months ago. By meklort, Add a few placeholders for file io | |
---|---|
1 | /*␊ |
2 | * fputs.c␊ |
3 | *␊ |
4 | * This isn't quite fputs() in the stdio sense, since we don't␊ |
5 | * have stdio, but it takes a file descriptor argument instead␊ |
6 | * of the FILE *.␊ |
7 | */␊ |
8 | ␊ |
9 | #include <stdio.h>␊ |
10 | #include <string.h>␊ |
11 | ␊ |
12 | extern size_t _fwrite(const void *buf, size_t count, FILE *f);␊ |
13 | int fputs(const char *s, FILE *file)␊ |
14 | {␊ |
15 | ␉return _fwrite(s, strlen(s), file);␊ |
16 | }␊ |
17 |