| 1025 | } |
| 1026 | |
| 1027 | char* strncpy(char* dest, const char* src, size_t count) |
| 1028 | { |
| 1029 | char *p = dest; |
| 1030 | |
| 1031 | while (count) { |
| 1032 | if ((*p = *src) != 0) |
| 1033 | src++; |
| 1034 | p++; |
| 1035 | count--; |
| 1036 | } |
| 1037 | return dest; |
| 1038 | } |
| 1039 | |
| 1040 | #endif |
| 1041 |
no outgoing calls
no test coverage detected