Line | Count | Source (jump to first uncovered line) |
1 | #include <lib9.h> | |
2 | ||
3 | char* | |
4 | strecpy(char *to, char *e, char *from) | |
5 | 0 | { |
6 | 0 | if(to >= e) |
7 | 0 | return to; |
8 | 0 | to = memccpy(to, from, '\0', e - to); |
9 | 0 | if(to == nil){ |
10 | 0 | to = e - 1; |
11 | 0 | *to = '\0'; |
12 | 0 | }else{ |
13 | 0 | to--; |
14 | 0 | } |
15 | 0 | return to; |
16 | 0 | } |