Commit 4fcc4f43 authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh.h (NUL_TERMINATED): New macro.

Rev: src/lsh.h:1.15
parent 3700d154
......@@ -98,6 +98,9 @@ struct lsh_string
UINT8 data[1];
};
/* Strings passed to C library functions must be properly
* NUL-terminated. */
#define NUL_TERMINATED(s) (!(s)->data[(s)->length])
/* Forward declarations of various structures */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment