projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db5579
)
MINOR: ist: Add istend() function to return a pointer to the end of the string
author
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 22 Oct 2020 12:37:12 +0000
(14:37 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 5 Nov 2020 18:25:12 +0000
(19:25 +0100)
istend() is a shortcut to istptr() + istlen().
include/import/ist.h
patch
|
blob
|
history
diff --git
a/include/import/ist.h
b/include/import/ist.h
index
4c8979b
..
1262e8f
100644
(file)
--- a/
include/import/ist.h
+++ b/
include/import/ist.h
@@
-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)
{