[go: up one dir, main page]

Menu

[897c37]: / runtime / strncpy.c  Maximize  Restore  History

Download this file

12 lines (10 with data), 218 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
/*
* Just to see if we can fiddle the assembly to make it faster
*/
char * strncpy(char * t, char * f, int n) {
register char * nt;
nt = t;
while ((n--) > 0 && (*(nt++) = *(f++)))
;
return t;
}