Buffer comparison to const char[]

This commit is contained in:
Wilson Lin 2018-07-20 22:36:34 +12:00
parent 9ca1294f26
commit a0573b337d
1 changed files with 4 additions and 0 deletions

View File

@ -12,4 +12,8 @@ int hbu_buffer_compare(hbu_buffer_t a, hbu_buffer_t b) {
return strcmp((char *) a->data, (char *) b->data);
}
int hbu_buffer_compare_lit(hbu_buffer_t a, const char *b) {
return strcmp((char *) a->data, b);
}
#endif