util: add strcmp_null, a strcmp that handles NULL parameters
authorJani Nikula <jani@nikula.org>
Fri, 25 Sep 2015 16:48:19 +0000 (19:48 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 26 Sep 2015 10:37:35 +0000 (07:37 -0300)
commitbcb695a716bf28691ac21f6faa56e93fd3210486
treeca1fd50cda697b8bd10da947d950376e00658192
parent23b8ed610a13802f0afa5fa70bc8faa04cf48a7f
util: add strcmp_null, a strcmp that handles NULL parameters

Add strcmp_null, a strcmp that handles NULL strings; in strcmp terms a
NULL string is considered to be less than a non-NULL string.
util/string-util.c
util/string-util.h