48 " asdf jkl; 77889909 \r\n\1\2\3Z",
126 char *
buff =
"testing";
166 for (
n = 1;
n < 1000000;
n *= 2) {
183#define MY_LLONG_MAX (APR_INT64_C(9223372036854775807))
184#define MY_LLONG_MIN (-MY_LLONG_MAX - APR_INT64_C(1))
188 static const struct {
190 const char *
in, *
end;
200 { 0, 10,
"123545ZZZ",
"ZZZ",
APR_INT64_C(123545) },
233 {
EINVAL, 99,
"", (
void *)-1 , 0 },
244 for (
n = 0;
n <
sizeof(ts)/
sizeof(ts[0]);
n++) {
245 char *
end =
"end ptr not changed";
269 }
else if (ts[
n].
end != (
void *)-1) {
282 ABTS_ASSERT(tc,
"strtoff fails on out-of-range integer",
304 for (;
off < 9999999;
off += 9) {
307 for (;
off < 999999999;
off += 999) {
323 static const struct {
335 { 103809024,
" 99M" },
336 { 1047527424,
"1.0G" }
340 for (
n = 0;
n <
sizeof(ts)/
sizeof(ts[0]);
n++) {
404 "a",
"b",
"c",
"d",
"e",
405 "f",
"g",
"h",
"i",
"j",
406 "1",
"2",
"3",
"4",
"5",
void abts_run_test(abts_suite *ts, test_func f, void *value)
#define ABTS_PTR_EQUAL(a, b, c)
#define ABTS_STR_NEQUAL(a, b, c, d)
#define ABTS_STR_EQUAL(a, b, c)
#define ABTS_ASSERT(a, b, c)
#define ABTS_INT_EQUAL(a, b, c)
APR Miscellaneous library routines.
const unsigned char * buf
apr_array_header_t ** result
static void snprintf_underflow(abts_case *tc, void *data)
static void string_strtoff(abts_case *tc, void *data)
static void test_strtok(abts_case *tc, void *data)
static void skip_prefix(abts_case *tc, void *data)
static void string_error(abts_case *tc, void *data)
static void snprintf_noNULL(abts_case *tc, void *data)
static void snprintf_overflow(abts_case *tc, void *data)
static void overflow_strfsize(abts_case *tc, void *data)
static void snprintf_0NULL(abts_case *tc, void *data)
static void string_cpystrn(abts_case *tc, void *data)
static void string_strtoi64(abts_case *tc, void *data)
abts_suite * teststr(abts_suite *suite)
static void snprintf_0nonNULL(abts_case *tc, void *data)
static void pstrcat(abts_case *tc, void *data)
static void string_strfsize(abts_case *tc, void *data)
static void string_long(abts_case *tc, void *data)