]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/port/strcpy.c
libregexp: improve the transition to next available thread, instruction, and generation
[plan9front.git] / sys / src / libc / port / strcpy.c
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 }