2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 2001-2009 Oracle. All rights reserved.
13 #if DB_VERSION_MAJOR < 4 || DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5
16 * We build this file in old versions of Berkeley DB when we're doing test
17 * runs using the test_micro tool. Without a prototype in place, we get
18 * warnings, and there's no simple workaround.
25 * Convert a string into an argc/argv pair.
27 * PUBLIC: int __db_util_arg __P((char *, char *, int *, char ***));
30 __db_util_arg(arg0, str, argcp, argvp)
31 char *arg0, *str, ***argvp;
39 __os_malloc(NULL, (MAXARGS + 1) * sizeof(char **), &argv)) != 0)
44 for (n = 1; (*ap = strsep(&str, " \t")) != NULL;)