diff options
Diffstat (limited to 'common/certinfo.c')
-rw-r--r-- | common/certinfo.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/certinfo.c b/common/certinfo.c index 93766b3..c2601de 100644 --- a/common/certinfo.c +++ b/common/certinfo.c @@ -36,7 +36,14 @@ #include <eurephia_nullsafe.h> #include <certinfo.h> - +/** + * Simple strcmp() wrapper, which makes it NULL safe. + * + * @param s input value + * @param v compare value + * + * @return Returns 1 if s and v are equal, otherwise 0. + */ #define comp_attrib(s, v) ( (v == NULL || strlen_nullsafe(v) < 1) ? 0 : (strcmp(v, s) == 0) ) /** |