X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmatchstr.h;h=94bcead73f95ed40b2d676fb45bd9766b3f616ce;hp=600cdaff5e73f0a226df9b858c3f7dbdb9108e1a;hb=077c4e7bb226de0f6414674e01a838498a49867b;hpb=a79aad9d43494377709086e73ff7b66930bbdb38 diff --git a/include/yaz/matchstr.h b/include/yaz/matchstr.h index 600cdaf..94bcead 100644 --- a/include/yaz/matchstr.h +++ b/include/yaz/matchstr.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data. + * Copyright (C) Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -87,6 +87,14 @@ YAZ_EXPORT int yaz_strncasecmp(const char *s1, const char *s2, size_t n); */ YAZ_EXPORT int yaz_strcasecmp(const char *s1, const char *s2); +/** \brief strcmp, null may be passed + \param s1 first buffer or NULL + \param s2 second buffer or NULL + \retval 0 buffers are equal + \retval >0 a > b + \retval <0 a < b +*/ +YAZ_EXPORT int yaz_strcmp_null(const char *s1, const char *s2); YAZ_END_CDECL