Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/fputs.c

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
12extern size_t _fwrite(const void *buf, size_t count, FILE *f);
13int fputs(const char *s, FILE *file)
14{
15return _fwrite(s, strlen(s), file);
16}
17

Archive Download this file

Revision: 1308