summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/puts.c
blob: 1688a7cb59bfe6d7f7520c41acc8e469dc259a9c (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>  // for fwrite, stdout, puts
#include <string.h> // for strlen

int puts(const char *s)
{
	fwrite(s, 1, strlen(s), stdout);
	fwrite("\n", 1, 1, stdout);
	return 0;
}