trim_newline
static void trim_newline(char *s, size_t maxlen)
static inline void trim_newline(char *str)