]> diplodocus.org Git - nmh/commitdiff
Rename recently added HasSuffixC() to has_suffix_c().
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:42:47 +0000 (14:42 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:42:47 +0000 (14:42 +0000)
h/utils.h
sbr/utils.c
uip/flist.c
uip/folder.c

index 21988f7..767ff9b 100644 (file)
--- 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 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);
 void TrimSuffixC(char *s, int c);
 void ToLower(char *s);
 void ToUpper(char *s);
index c070dc1..c620d62 100644 (file)
@@ -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. */
  * 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;
 }
 {
     return *s && s[strlen(s) - 1] == c;
 }
index 383c655..3af4dfe 100644 (file)
@@ -118,7 +118,7 @@ main(int argc, char **argv)
      * If program was invoked with name ending
      * in `s', then add switch `-all'.
      */
      * 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;
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;
index 87e18a1..10c9290 100644 (file)
@@ -118,7 +118,7 @@ main (int argc, char **argv)
      * If program was invoked with name ending
      * in `s', then add switch `-all'.
      */
      * 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;
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;