summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.h b/types.h
index af89dd2..2251bcc 100644
--- a/types.h
+++ b/types.h
@@ -37,4 +37,5 @@ struct string {
};
#define STRING(x) (struct string){x, sizeof(x)-1}
+#define NULSTR(x) (struct string){x, strlen(x)}
#define WRITES(x, y) write(x, y.data, y.len)