Go to the documentation of this file.
36 for (j =
i - 1; j > 0; j--)
37 p[j] = p[j] + p[j - 1];
38 for (j = 0; j <=
i; j++)
48 struct tm testtime = { .tm_year = 100, .tm_mon = 11, .tm_mday = 20 };
52 printf(
"Short text in unlimited buffer: %u/%u\n", (
unsigned)strlen(
b.str),
b.len);
58 printf(
"Long text in unlimited buffer: %u/%u\n", (
unsigned)strlen(
b.str),
b.len);
63 printf(
"Long text in limited buffer: %u/%u\n", (
unsigned)strlen(
b.str),
b.len);
68 printf(
"Short text in automatic buffer: %u/%u\n", (
unsigned)strlen(
b.str),
b.len);
72 printf(
"Long text in automatic buffer: %u/%u\n", (
unsigned)strlen(
b.str)/8*8,
b.len);
77 printf(
"Long text count only buffer: %u/%u\n", (
unsigned)strlen(
b.str),
b.len);
81 printf(
"Long text count only buffer: %u/%u\n", (
unsigned)strlen(
buf),
b.len);
85 printf(
"strftime full: %u/%u \"%s\"\n", (
unsigned)strlen(
buf),
b.len,
b.str);
90 printf(
"strftime truncated: %u/%u \"%s\"\n", (
unsigned)strlen(
buf),
b.len,
b.str);
#define AV_BPRINT_SIZE_UNLIMITED
int av_bprint_finalize(AVBPrint *buf, char **ret_str)
Finalize a print buffer.
void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
void av_bprint_strftime(AVBPrint *buf, const char *fmt, const struct tm *tm)
Append a formatted date and time to a print buffer.
#define AV_BPRINT_SIZE_COUNT_ONLY
#define AV_BPRINT_SIZE_AUTOMATIC
#define av_assert0(cond)
assert() equivalent, that is always enabled.
static void bprint_pascal(AVBPrint *b, unsigned size)
printf("static const uint8_t my_array[100] = {\n")
void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size)
Init a print buffer using a pre-existing buffer.
#define i(width, name, range_min, range_max)
void av_bprintf(AVBPrint *buf, const char *fmt,...)
#define FF_ARRAY_ELEMS(a)