diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-06-13 11:02:54 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-06-30 10:35:27 +0200 |
commit | 944c1243307ce002be2b297c45c59cb8d2c13c3a (patch) | |
tree | 6bd00eb6896f0d67e26f18b9b4e2c0e66d707010 /man/sd-id128.xml | |
parent | d13f105165538ca7976eae93b44719ecb7ae5b76 (diff) | |
download | systemd-944c1243307ce002be2b297c45c59cb8d2c13c3a.tar.gz |
man: document sd_id128_string_equal()
Diffstat (limited to 'man/sd-id128.xml')
-rw-r--r-- | man/sd-id128.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/sd-id128.xml b/man/sd-id128.xml index 566cc2b595..c869943ad7 100644 --- a/man/sd-id128.xml +++ b/man/sd-id128.xml @@ -28,6 +28,7 @@ <refname>SD_ID128_NULL</refname> <refname>SD_ID128_UUID_FORMAT_STR</refname> <refname>sd_id128_equal</refname> + <refname>sd_id128_string_equal</refname> <refname>sd_id128_in_set</refname> <refname>sd_id128_in_set_sentinel</refname> <refname>sd_id128_in_setv</refname> @@ -76,6 +77,12 @@ </funcprototype> <funcprototype> + <funcdef>int <function>sd_id128_string_equal</function></funcdef> + <paramdef>const char *<parameter>a</parameter></paramdef> + <paramdef>sd_id128_t <parameter>b</parameter></paramdef> + </funcprototype> + + <funcprototype> <funcdef>int <function>sd_id128_is_null</function></funcdef> <paramdef>sd_id128_t <parameter>id</parameter></paramdef> </funcprototype> @@ -200,6 +207,10 @@ int main(int argc, char **argv) { return 0; }</programlisting> + <para><function>sd_id128_string_equal()</function> is similar to <function>sd_id128_equal()</function>, + but the first ID is formatted as <type>const char*</type>. The same restrictions apply as to the first + argument of <function>sd_id128_from_string()</function>.</para> + <para><function>sd_id128_is_null()</function> checks if an ID consists of only <constant>NUL</constant> bytes:</para> |