summaryrefslogtreecommitdiff
path: root/com32/lib/fputs.c
blob: 4b68f96886da4ccaaca2f75cd8d33f7c61bc2ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * 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);
}