diff options
author | ZviRackover <zvirack@gmail.com> | 2018-08-11 17:14:10 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-08-11 16:14:10 +0200 |
commit | 22311457ab60be9335f8e630c8b794340d39e466 (patch) | |
tree | b0b1a1a32009fd80cfeb2b77ffeae9202b21bbff /src/nvim/strings.c | |
parent | 6aefae8c4e6e273ae96f1135b74a081543b548e5 (diff) | |
download | rneovim-22311457ab60be9335f8e630c8b794340d39e466.tar.gz rneovim-22311457ab60be9335f8e630c8b794340d39e466.tar.bz2 rneovim-22311457ab60be9335f8e630c8b794340d39e466.zip |
refactor: Replace vim_strrchr() with strrchar() (#8718)
ref #1474
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 3f31914c03..3b075f8b70 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -456,25 +456,6 @@ char_u *vim_strchr(const char_u *const string, const int c) } /* - * Search for last occurrence of "c" in "string". - * Return NULL if not found. - * Does not handle multi-byte char for "c"! - */ -char_u *vim_strrchr(const char_u *string, int c) - FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE -{ - const char_u *retval = NULL; - const char_u *p = string; - - while (*p) { - if (*p == c) - retval = p; - MB_PTR_ADV(p); - } - return (char_u *) retval; -} - -/* * Sort an array of strings. */ |