add stralloc_equal and stralloc_equals

master
Felix von Leitner 2002-10-28 20:17:03 +00:00
parent 3e4db0c7c9
commit e34c6ecc72
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ extern int stralloc_diff(const stralloc* a,const stralloc* b) __pure__;
* string b[0], b[1], ..., b[n]=='\0'. */
extern int stralloc_diffs(const stralloc* a,const char* b) __pure__;
#define stralloc_equal(a,b) (!stralloc_diff((a),(b)))
#define stralloc_equals(a,b) (!stralloc_diffs((a),(b)))
/* stralloc_0 appends \0 */
#define stralloc_0(sa) stralloc_append(sa,"")