| 1561 | } |
| 1562 | |
| 1563 | void str_copy(char *dst, const char *src, int dst_size) |
| 1564 | { |
| 1565 | strncpy(dst, src, dst_size); |
| 1566 | dst[dst_size-1] = 0; /* assure null termination */ |
| 1567 | } |
| 1568 | |
| 1569 | int str_length(const char *str) |
| 1570 | { |
no outgoing calls
no test coverage detected