X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=string.c;h=10b6073fe1ff9960bac98ac473146a8a3e00a575;hp=8cc7d5d7965e725839375237af3f063b1b44d13b;hb=f1420ef5b0c5db7adb5109885ac04745365a1cfa;hpb=bfdd36f2879b8dee1f6d3330bc49fbb5644d3caf diff --git a/string.c b/string.c index 8cc7d5d7..10b6073f 100644 --- a/string.c +++ b/string.c @@ -298,24 +298,6 @@ __must_check char *para_basename(const char *name) return ret; } -/** - * Cut trailing newline. - * - * \param buf The string to be chopped. - * - * Replace the last character in \p buf by zero if it is equal to - * the newline character. - */ -void chop(char *buf) -{ - int n = strlen(buf); - - if (!n) - return; - if (buf[n - 1] == '\n') - buf[n - 1] = '\0'; -} - /** * Get the logname of the current user. *