*** DRAFT ***

SQLite C Interface

Add Content To A Dynamic String

void sqlite3_str_appendf(sqlite3_str*, const char *zFormat, ...);
void sqlite3_str_vappendf(sqlite3_str*, const char *zFormat, va_list);
void sqlite3_str_append(sqlite3_str*, const char *zIn, int N);
void sqlite3_str_appendall(sqlite3_str*, const char *zIn);
void sqlite3_str_appendchar(sqlite3_str*, int N, char C);
void sqlite3_str_reset(sqlite3_str*);

These interfaces add content to an sqlite3_str object previously obtained from sqlite3_str_new().

R-56922-36205:[The sqlite3_str_appendf(X,F,. ] ..) and sqlite3_str_vappendf(X,F,V) interfaces uses the built-in printf functionality of SQLite to append formatted text onto the end of sqlite3_str object X.

R-63565-54156:[The sqlite3_str_append(X,S,N) method appends exactly N bytes from string S onto the end of the sqlite3_str object X. ] N must be non-negative. S must contain at least N non-zero bytes of content. To append a zero-terminated string in its entirety, use the sqlite3_str_appendall() method instead.

R-54405-49237:[The sqlite3_str_appendall(X,S) method appends the complete content of zero-terminated string S onto the end of sqlite3_str object X. ]

R-26170-15376:[The sqlite3_str_appendchar(X,N,C) method appends N copies of the single-byte character C onto the end of sqlite3_str object X. ] R-47136-25746:[This method can be used, for example, to add whitespace indentation. ]

R-19604-19849:[The sqlite3_str_reset(X) method resets the string under construction inside sqlite3_str object X back to zero bytes in length. ]

These methods do not return a result code. R-05212-61817:[If an error occurs, that fact is recorded in the sqlite3_str object and can be recovered by a subsequent call to sqlite3_str_errcode(X). ]

See also lists of Objects, Constants, and Functions.

*** DRAFT ***