| 1889 | } |
| 1890 | |
| 1891 | void ImStrncpy(char* dst, const char* src, size_t count) |
| 1892 | { |
| 1893 | if (count < 1) |
| 1894 | return; |
| 1895 | if (count > 1) |
| 1896 | strncpy(dst, src, count - 1); |
| 1897 | dst[count - 1] = 0; |
| 1898 | } |
| 1899 | |
| 1900 | char* ImStrdup(const char* str) |
| 1901 | { |
no outgoing calls
no test coverage detected