stripcr - strip first \n from string
#include <mysting.h>
char *
stripcr(char *s1)
char *
striprcr(char *s1)
The stripcr() and striprcr() functions replace both the character \n in a string with the character \0. While stripcr() is doing this with the first occurrence of \n in s1, striprcr() is doing it with the rightmost one. If no \n can be found, the string s1 is not modified.
Both functions return their argument.
The stripcr() and striprcr() functions are part of MCNTP, the diploma thesis Transport of NetNews via IP-multicast of the author.
Heiko W.Rupp (hwr@pilhuhn.de)
None known yet. If you find any, then please report them to <mcntpbugs@pilhuhn.de>
$Id: stripcr.3.html,v 1.5 2001/11/22 10:24:37 pilhuhn Exp $