mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-16 18:46:54 +00: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
@ -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 New Issue
Block a user