From 7bfaba6338a9d119228f03dd440f1486fa7fc182 Mon Sep 17 00:00:00 2001 From: Dotsenko Andrey Date: Sat, 10 Dec 2016 22:32:58 +0300 Subject: [PATCH] Add documentation for ck_assert_pstr_* macros --- doc/check.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/check.texi b/doc/check.texi index 7391aa98..3af9ada5 100644 --- a/doc/check.texi +++ b/doc/check.texi @@ -1204,6 +1204,16 @@ operator is again indicated by last two letters of the function name. of the character string @code{a} is less than that of @code{b}. If a NULL pointer would be passed to any comparison macro than check would fail. +@item ck_assert_pstr_eq +@itemx ck_assert_pstr_ne + +Similar to @code{ck_assert_str_*} macros, but able to check undefined strings. +If a NULL pointer would be passed to a comparison macro it would mean that +a string is undefined. If both strings are undefined @code{ck_assert_pstr_eq} +would pass, but @code{ck_assert_pstr_ne} would fail. If only one of strings is +undefined @code{ck_assert_pstr_eq} macro would fail and @code{ck_assert_pstr_ne} +would pass. + @item ck_assert_ptr_eq @itemx ck_assert_ptr_ne