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.
This commit is contained in:
Christopher Faulet 2020-04-21 10:46:43 +02:00
parent a67ed43b71
commit 0417975bdc

View File

@ -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)
{