15 char* chardest = NULL;
20 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
22 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
24 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
26 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
28 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
30 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
36 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
38 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
40 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
42 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
44 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
46 n_log(
LOG_INFO,
"charstr (%d/%d): %s", written, length, chardest);
54 nstrprintf(nstr,
"Hello, file is %s line %d date %s", __FILE__, __LINE__, __TIME__);
58 nstrprintf_cat(nstr,
" - This will be added at file %s line %d date %s", __FILE__, __LINE__, __TIME__);
68 nstrprintf(nstr,
"Hello, file is %s line %d date %s", __FILE__, __LINE__, __TIME__);
72 nstrprintf_cat(nstr,
" - This will be added at file %s line %d date %s", __FILE__, __LINE__, __TIME__);
103 char data[1048576] =
"";
105 for (
int it = 0; it < 1048575; it++) {
106 data[it] = 32 + rand() % 63;
108 data[1048574] =
'\0';
110 for (
int it = 0; it < 100; it++) {
int write_and_fit(char **dest, NSTRBYTE *size, NSTRBYTE *written, const char *src)
concatenate a copy of src of size strlen( src ) to dest, starting at dest[ written ],...
int write_and_fit_ex(char **dest, NSTRBYTE *size, NSTRBYTE *written, const char *src, NSTRBYTE src_size, NSTRBYTE additional_padding)
concatenate a copy of src of size src_size to dest, starting at dest[ written ], updating written and...