MCPcopy Create free account
hub / github.com/audacity/audacity / import_append_char

Function import_append_char

lib-src/sqlite/shell.c:15134–15141  ·  view source on GitHub ↗

Append a single byte to z[] */

Source from the content-addressed store, hash-verified

15132
15133/* Append a single byte to z[] */
15134static void import_append_char(ImportCtx *p, int c){
15135 if( p->n+1>=p->nAlloc ){
15136 p->nAlloc += p->nAlloc + 100;
15137 p->z = sqlite3_realloc64(p->z, p->nAlloc);
15138 if( p->z==0 ) shell_out_of_memory();
15139 }
15140 p->z[p->n++] = (char)c;
15141}
15142
15143/* Read a single field of CSV text. Compatible with rfc4180 and extended
15144** with the option of having a separator other than ",".

Callers 3

csv_read_one_fieldFunction · 0.85
ascii_read_one_fieldFunction · 0.85
do_meta_commandFunction · 0.85

Calls 1

shell_out_of_memoryFunction · 0.85

Tested by

no test coverage detected