From 0417975bdc95ebbd85980f1a066cf7d803fb358a Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 21 Apr 2020 10:46:43 +0200 Subject: [PATCH] MINOR: ist: Add a function to retrieve the ist pointer There is already the istlen() function to get the ist length. Now, it is possible to call istptr() to get the ist pointer. --- include/common/ist.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/common/ist.h b/include/common/ist.h index 68c83ffa0..2b5178f8c 100644 --- a/include/common/ist.h +++ b/include/common/ist.h @@ -211,6 +211,12 @@ static inline char *ist0(struct ist ist) return ist.ptr; } +/* returns the pointer of the string */ +static inline char *istptr(const struct ist ist) +{ + return ist.ptr; +} + /* returns the length of the string */ static inline size_t istlen(const struct ist ist) {