20110512-2206

This commit is contained in:
charles forsyth
2011-05-12 22:06:54 +01:00
commit 44b904efbb
31 changed files with 6121 additions and 0 deletions

14
strecpy.c Normal file
View File

@ -0,0 +1,14 @@
#include <plan9.h>
char*
strecpy(char *to, char *e, char *from)
{
if(to >= e)
return to;
to = memccpy(to, from, '\0', e - to);
if(to == nil){
to = e - 1;
*to = '\0';
}
return to;
}