mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02: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;
|
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 */
|
/* skips to next character in the string, always stops at the end */
|
||||||
static inline struct ist istnext(const struct ist ist)
|
static inline struct ist istnext(const struct ist ist)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user