#define __q_h__
#include <stdio.h>
+#include "../config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
/* dynamically growing mem section */
typedef struct _mem_t {
void dictionary_clear(dictionary_t*dict);
void dictionary_destroy(dictionary_t*dict);
-char* strndup(const char*str, int size);
+char* strdup_n(const char*str, int size);
void* qmalloc_internal(int len);
void* qrealloc_internal(void*old, int len);
#define qrealloc(old, len) qmalloc_internal(old, len)
#define qfree(old) qmalloc_internal(old)
+#ifdef __cplusplus
+}
+#endif
+
#endif //__q_h__