]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: new function virSkipToDigit()
authorLaine Stump <laine@redhat.com>
Fri, 8 Jan 2021 00:55:43 +0000 (19:55 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 8 Jan 2021 15:15:04 +0000 (10:15 -0500)
commit0e89a7b4e0defb2b3711c1e854a51d296d7b6f7f
treeb8a16b3dfd8035ee6904d78971efcdf9c441bfdd
parentdc837a412f67b709373247003a07e4b387cec1b8
util: new function virSkipToDigit()

This function skips over the beginning of a string until it reaches a
decimal digit (0-9) or the NULL at the end of the string. The original
pointer is modified in place (similar to virSkipSpaces()).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h