From 62bfda03da9ba46273bbbffe6be1df498b21d991 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 10 Dec 2016 14:42:47 +0000 Subject: [PATCH] Rename recently added HasSuffixC() to has_suffix_c(). --- h/utils.h | 2 +- sbr/utils.c | 4 ++-- uip/flist.c | 2 +- uip/folder.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/h/utils.h b/h/utils.h index 21988f73..767ff9b8 100644 --- a/h/utils.h +++ b/h/utils.h @@ -69,7 +69,7 @@ void trunccpy(char *dst, const char *src, size_t size); bool has_prefix(const char *s, const char *prefix); bool has_suffix(const char *s, const char *suffix); -bool HasSuffixC(const char *s, int c); +bool has_suffix_c(const char *s, int c); void TrimSuffixC(char *s, int c); void ToLower(char *s); void ToUpper(char *s); diff --git a/sbr/utils.c b/sbr/utils.c index c070dc10..c620d62e 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -395,9 +395,9 @@ bool has_suffix(const char *s, const char *suffix) } -/* HasSuffixC returns true if non-NULL string s ends with a c before the +/* has_suffix_c returns true if non-NULL string s ends with a c before the * terminating NUL. */ -bool HasSuffixC(const char *s, int c) +bool has_suffix_c(const char *s, int c) { return *s && s[strlen(s) - 1] == c; } diff --git a/uip/flist.c b/uip/flist.c index 383c655d..3af4dfef 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -118,7 +118,7 @@ main(int argc, char **argv) * If program was invoked with name ending * in `s', then add switch `-all'. */ - all = HasSuffixC(argv[0], 's'); + all = has_suffix_c(argv[0], 's'); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; diff --git a/uip/folder.c b/uip/folder.c index 87e18a16..10c9290a 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -118,7 +118,7 @@ main (int argc, char **argv) * If program was invoked with name ending * in `s', then add switch `-all'. */ - all = HasSuffixC(argv[0], 's'); + all = has_suffix_c(argv[0], 's'); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; -- 2.56.0