naspro
view naspro-core/include/NASPRO/core/string.h @ 174:4f7243a606b1
Updated copyright notices and build system
| author | Stefano D'Angelo <zanga.mail@gmail.com> |
|---|---|
| date | Sat May 01 21:51:33 2010 +0300 (2010-05-01) |
| parents | 71372f617827 |
| children |
line source
1 /*
2 * NASPRO - NASPRO Architecture for Sound Processing
3 * Core library
4 *
5 * Copyright (C) 2007-2010 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 */
