2006-07-16 17:36:31 +02:00
|
|
|
#include "user.h"
|
|
|
|
|
2006-06-27 16:35:53 +02:00
|
|
|
int
|
|
|
|
puts(char *s)
|
2006-07-16 17:36:31 +02:00
|
|
|
{
|
|
|
|
return cons_puts(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
puts1(char *s)
|
2006-06-27 16:35:53 +02:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for(i = 0; s[i]; i++)
|
|
|
|
cons_putc(s[i]);
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
2006-07-16 18:00:03 +02:00
|
|
|
char*
|
|
|
|
strcpy(char *s, char *t)
|
|
|
|
{
|
|
|
|
char *os;
|
|
|
|
|
|
|
|
os = s;
|
|
|
|
while((*s++ = *t++) != 0)
|
|
|
|
;
|
|
|
|
return os;
|
|
|
|
}
|