added chunk_compare() which compares orders chunks

This commit is contained in:
Andreas Steffen
2007-03-27 04:37:15 +00:00
parent 51ae94d775
commit ef49c3486a
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -123,6 +123,12 @@ void chunk_free(chunk_t *chunk);
*/
chunk_t chunk_skip(chunk_t chunk, size_t bytes);
/**
* Compare two chunks, returns zero if a equals b
* or negative/positive if a is small/greater than b
*/
int chunk_compare(chunk_t a, chunk_t b);
/**
* Compare two chunks for equality,
* NULL chunks are never equal.