mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-05 17:14:59 -04:00
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:
parent
1db5579bf8
commit
cf26623780
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue