| 1541 | } |
| 1542 | |
| 1543 | void ImStrncpy(char* dst, const char* src, size_t count) |
| 1544 | { |
| 1545 | if (count < 1) |
| 1546 | return; |
| 1547 | if (count > 1) |
| 1548 | strncpy(dst, src, count - 1); |
| 1549 | dst[count - 1] = 0; |
| 1550 | } |
| 1551 | |
| 1552 | char* ImStrdup(const char* str) |
| 1553 | { |
no outgoing calls
no test coverage detected