7 char *substrncpy(char *dest
, const char *start
, const char *end
, size_t n
)
12 if ((!dest
) || (!start
) || (!end
) || (n
== 0))
19 for (i
= 0 ; i
< n
&& src
<= end
; i
++, src
++) {
22 for ( ; i
< n
; i
++) {
29 const char *trim_spaces(const char *line
)
33 while (*p
!= '\0' && isspace(*p
)) {
34 if (*p
== '\n' || *p
== '\r') {