Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions qbuild/qstruct/qstruct.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#include <qbuild/qbuild.internal.h>

int8_t _qstruct_comparator_string(char *x, char *y) {
return strcmp(x, y);
}

5 changes: 5 additions & 0 deletions qbuild/qstruct/qstruct.internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ extern "C" {
if (res != QSTRUCT_RESULT_OK) return QBUILD_RESULT_DATASTRUCTURE_FAILED; \
} while (0);

/*
* Compares to strings
*/
int8_t _qstruct_comparator_string(char *x, char *y);

#ifdef __cplusplus
}
#endif
Expand Down
Loading