diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-25 13:14:35 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-25 13:14:35 +0200 |
commit | 3b79f0183dde8e2b2694dc26da836c75640d8c5d (patch) | |
tree | f323d6de64a4dc81ef8f4d6f8b80d5f136121d26 /database/sqlite/sqlite.c | |
parent | ea848bbd45b4ede131d1a3514844c22d50736645 (diff) | |
download | eurephia-3b79f0183dde8e2b2694dc26da836c75640d8c5d.tar.gz eurephia-3b79f0183dde8e2b2694dc26da836c75640d8c5d.tar.xz eurephia-3b79f0183dde8e2b2694dc26da836c75640d8c5d.zip |
Moved the useful append_str() macro from sqlite.c to eurephia_nullsafe.h
Diffstat (limited to 'database/sqlite/sqlite.c')
-rw-r--r-- | database/sqlite/sqlite.c | 11 |
1 files changed, 0 insertions, 11 deletions
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 @@ -345,17 +345,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 * |