From 3b79f0183dde8e2b2694dc26da836c75640d8c5d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 25 Sep 2009 13:14:35 +0200 Subject: Moved the useful append_str() macro from sqlite.c to eurephia_nullsafe.h --- database/sqlite/sqlite.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'database/sqlite') diff --git a/database/sqlite/sqlite.c b/database/sqlite/sqlite.c index 71bd04a..263ef97 100644 --- a/database/sqlite/sqlite.c +++ b/database/sqlite/sqlite.c @@ -344,17 +344,6 @@ char *_build_value_string(eDBfieldMap *ptr) { } -/** - * Wrapper macro, which appends a string to a destination string without exceeding the size - * of the destination buffer. - * - * @param dest Pointer to the destination buffer - * @param src Pointer to the value being concatenated to the destination string. - * @param size Size of the destination buffer - */ -#define append_str(dest, src, size) strncat(dest, src, (size - strlen_nullsafe(dest))) - - /** * Internal function. Builds up a part of an SQL query, depending on the buildType. The values * are taken from a pointer to an eDBfieldMap keeping the values -- cgit