summaryrefslogtreecommitdiff
path: root/ulib.c
blob: d7e8934a0338ca907de25cff7dc36e299e16caa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "user.h"

int
puts(char *s)
{
  return cons_puts(s);
}

int
puts1(char *s)
{
  int i;

  for(i = 0; s[i]; i++)
    cons_putc(s[i]);
  return i;
}

char*
strcpy(char *s, char *t)
{
	char *os;
	
	os = s;
	while((*s++ = *t++) != 0)
		;
	return os;
}