mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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:
parent
f396ac5af4
commit
af4b994bc4
@ -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:
|
||||
|
||||
::
|
||||
|
Loading…
x
Reference in New Issue
Block a user