]> diplodocus.org Git - nmh/commit
Add TrimSuffixC(char *s, int c).
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 16:05:24 +0000 (17:05 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 09:12:00 +0000 (10:12 +0100)
commit80ca91c25c3eb4f96f6c3842c1c14053ae69e80a
tree641c2764cd4ff6c87456097dca0607ca6cb0f5ce
parent122129da83e4e9ec2d0363ef9f60d32491af2629
Add TrimSuffixC(char *s, int c).
TrimSuffixC deletes c from the end of non-NULL string s if it's present,
shortening s by 1.  Only one instance of c is removed.
h/utils.h
sbr/utils.c