diff options
| author | default <nobody@localhost> | 2022-09-25 09:07:43 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2022-09-25 09:07:43 +0200 |
| commit | 4f328eec1f428d4e87adeb4c4eaf1e81afe26913 (patch) | |
| tree | a3636038d0347efb593f1bf580fbe67d3ab0bed1 /xs.h | |
| parent | 5792ef5d24bd58f5c74a37c43d80720c46a6758a (diff) | |
Some fixes to timeline_add().
Diffstat (limited to 'xs.h')
| -rw-r--r-- | xs.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -41,6 +41,7 @@ void _xs_destroy(char **var); #define xs_debug() kill(getpid(), 5) xstype xs_type(const char *data); int xs_size(const char *data); +int xs_is_null(char *data); d_char *xs_dup(const char *data); d_char *xs_expand(d_char *data, int offset, int size); d_char *xs_collapse(d_char *data, int offset, int size); @@ -185,6 +186,13 @@ int xs_size(const char *data) } +int xs_is_null(char *data) +/* checks for null */ +{ + return !!(data == NULL || xs_type(data) == XSTYPE_NULL); +} + + d_char *xs_dup(const char *data) /* creates a duplicate of data */ { |