naspro
view naspro-core/include/NASPRO/core/string.h @ 173:71372f617827
Totally CMakeized, a bit of doc
| author | Stefano D'Angelo <zanga.mail@gmail.com> |
|---|---|
| date | Fri Mar 26 18:54:24 2010 +0200 (2010-03-26) |
| parents | d7568c8379c1 |
| children | 4f7243a606b1 |
line source
1 /*
2 * NASPRO - NASPRO Architecture for Sound Processing
3 * Core library
4 *
5 * Copyright (C) 2007-2009 Stefano D'Angelo <zanga.mail@gmail.com>
6 *
7 * See the COPYING file for license conditions.
8 */
10 #ifndef _NACORE_STRING_H
11 #define _NACORE_STRING_H
13 #include <stddef.h>
15 /* Helper macro to determine whether a string (char pointer) is NULL or empty */
16 #define NACORE_STRING_IS_NULL_OR_EMPTY(s) ((s == NULL) ? 1 : (*s == '\0'))
18 #endif /* !_NACORE_STRING_H */
