46BU_EXPORT
extern size_t bu_strlcatm(
char *dst,
const char *src,
size_t size,
const char *label);
47#define bu_strlcat(dst, src, size) bu_strlcatm(dst, src, size, CPP_FILELINE)
56BU_EXPORT
extern size_t bu_strlcpym(
char *dst,
const char *src,
size_t size,
const char *label);
57#define bu_strlcpy(dst, src, size) bu_strlcpym(dst, src, size, CPP_FILELINE)
67BU_EXPORT
extern char *
bu_strdupm(
const char *cp,
const char *label);
68#define bu_strdup(s) bu_strdupm(s, CPP_FILELINE)
77BU_EXPORT
extern int bu_strcmp(
const char *string1,
const char *string2);
87BU_EXPORT
extern int bu_strncmp(
const char *string1,
const char *string2,
size_t n);
97BU_EXPORT
extern int bu_strcasecmp(
const char *string1,
const char *string2);
108BU_EXPORT
extern int bu_strncasecmp(
const char *string1,
const char *string2,
size_t n);
114#define BU_STR_EMPTY(s) (bu_strcmp((s), "") == 0)
123#define BU_STR_EQUAL(s1, s2) (bu_strcmp((s1), (s2)) == 0)
132#define BU_STR_EQUIV(s1, s2) (bu_strcasecmp((s1), (s2)) == 0)
334BU_EXPORT
extern void bu_free_args(
size_t argc,
char *argv[],
const char *str);
344BU_EXPORT
extern char **
bu_argv_dup(
size_t argc,
const char *argv[]);
356BU_EXPORT
extern char **
bu_argv_dupinsert(
int insert,
size_t insertArgc,
const char *insertArgv[],
size_t argc,
const char *argv[]);
Header file for the BRL-CAD common definitions.
void bu_argv_free(size_t argc, char *argv[])
size_t bu_strlcatm(char *dst, const char *src, size_t size, const char *label)
char ** bu_argv_dup(size_t argc, const char *argv[])
int bu_strcasecmp(const char *string1, const char *string2)
size_t bu_editdist(const char *s1, const char *s2)
char * bu_strdupm(const char *cp, const char *label)
void bu_free_args(size_t argc, char *argv[], const char *str)
int bu_strncasecmp(const char *string1, const char *string2, size_t n)
size_t bu_strlcpym(char *dst, const char *src, size_t size, const char *label)
char * bu_str_escape(const char *input, const char *expression, char *output, size_t size)
These routines implement support for escaping and unescaping generalized strings that may represent f...
int bu_argv_from_tcl_list(const char *list_str, int *argc, const char ***argv)
size_t bu_argv_from_string(char *argv[], size_t lim, char *lp)
Functions related to argv processing.
char ** bu_argv_dupinsert(int insert, size_t insertArgc, const char *insertArgv[], size_t argc, const char *argv[])
int bu_str_true(const char *str)
routines for parsing boolean values from strings
int bu_strncmp(const char *string1, const char *string2, size_t n)
int bu_str_isprint(const char *cp)
Routines for checking ctypes.
int bu_strcmp(const char *string1, const char *string2)
int bu_str_false(const char *str)
char * bu_str_unescape(const char *input, char *output, size_t size)
void float float int int int int float * size