C++程序  |  16行  |  288 B

/*
 * fputs.c
 *
 * This isn't quite fputs() in the stdio sense, since we don't
 * have stdio, but it takes a file descriptor argument instead
 * of the FILE *.
 */

#include <stdio.h>
#include <string.h>

int fputs(const char *s, FILE * file)
{
    return _fwrite(s, strlen(s), file);
}