MINOR: ist: Add istend() function to return a pointer to the end of the string

istend() is a shortcut to istptr() + istlen().
This commit is contained in:
Christopher Faulet 2020-10-22 14:37:12 +02:00 committed by Willy Tarreau
parent 1db5579bf8
commit cf26623780
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,12 @@ static inline size_t istlen(const struct ist ist)
return ist.len;
}
/* returns the pointer to the end the string */
static inline char *istend(const struct ist ist)
{
return (ist.ptr + ist.len);
}
/* skips to next character in the string, always stops at the end */
static inline struct ist istnext(const struct ist ist)
{