summaryrefslogtreecommitdiff
path: root/ulib.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-16 16:00:03 +0000
committerrsc <rsc>2006-07-16 16:00:03 +0000
commitb75c11b20edad4e507d5bc2455177de59a38ec9f (patch)
tree3bf6c4b6f5983d41f56fb78ede01a36d24b3b3b1 /ulib.c
parentb74f4b57ae48719fca4fc621732b055b2debaf3e (diff)
downloadxv6-labs-b75c11b20edad4e507d5bc2455177de59a38ec9f.tar.gz
xv6-labs-b75c11b20edad4e507d5bc2455177de59a38ec9f.tar.bz2
xv6-labs-b75c11b20edad4e507d5bc2455177de59a38ec9f.zip
add %s to cprintf for cons_puts
Diffstat (limited to 'ulib.c')
-rw-r--r--ulib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ulib.c b/ulib.c
index 97afc8c..d7e8934 100644
--- a/ulib.c
+++ b/ulib.c
@@ -16,3 +16,13 @@ puts1(char *s)
return i;
}
+char*
+strcpy(char *s, char *t)
+{
+ char *os;
+
+ os = s;
+ while((*s++ = *t++) != 0)
+ ;
+ return os;
+}