Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#define	N	10000
4
 
5
char*
6
strcpy(char *s1, char *s2)
7
{
8
	char *os1;
9
 
10
	os1 = s1;
11
	while(!memccpy(s1, s2, 0, N)) {
12
		s1 += N;
13
		s2 += N;
14
	}
15
	return os1;
16
}