docs: Fill missing docs on STRCASEPREFIX() and STRSKIP()

We document use of our STR*() macros, but somehow missed
STRCASEPREFIX() and STRSKIP().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
Michal Privoznik
2022-11-16 12:15:03 +01:00
parent f396ac5af4
commit af4b994bc4
+15
View File
@@ -735,6 +735,21 @@ use one of the following semantically named macros
STRPREFIX(a, b)
- For case insensitive equality of a prefix:
::
STRCASEPREFIX(a, b)
- For skipping prefix:
::
/* Instead of:
* STRPREFIX(a, b) ? a + strlen(b) : NULL
* use: */
STRSKIP(a, b)
- To avoid having to check if a or b are NULL:
::