Chameleon

Chameleon Svn Source Tree

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

Source at commit 1406 created 12 years 10 months ago.
By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too.
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: 1406