BRL-CAD
str.h File Reference
#include "common.h"
#include "bu/defines.h"
Include dependency graph for str.h:

Go to the source code of this file.

Macros

#define bu_strlcat(dst, src, size)   bu_strlcatm(dst, src, size, BU_FLSTR)
 
#define bu_strlcpy(dst, src, size)   bu_strlcpym(dst, src, size, BU_FLSTR)
 
#define bu_strdup(s)   bu_strdupm(s, BU_FLSTR)
 
#define BU_STR_EMPTY(s)   (bu_strcmp((s), "") == 0)
 
#define BU_STR_EQUAL(s1, s2)   (bu_strcmp((s1), (s2)) == 0)
 
#define BU_STR_EQUIV(s1, s2)   (bu_strcasecmp((s1), (s2)) == 0)
 

Functions

size_t bu_strlcatm (char *dst, const char *src, size_t size, const char *label)
 
size_t bu_strlcpym (char *dst, const char *src, size_t size, const char *label)
 
char * bu_strdupm (const char *cp, const char *label)
 
int bu_strcmp (const char *string1, const char *string2)
 
int bu_strncmp (const char *string1, const char *string2, size_t n)
 
int bu_strcasecmp (const char *string1, const char *string2)
 
int bu_strncasecmp (const char *string1, const char *string2, size_t n)
 
char * bu_str_escape (const char *input, const char *expression, char *output, size_t size)
 
char * bu_str_unescape (const char *input, char *output, size_t size)
 
int bu_str_isprint (const char *cp)
 
int bu_gethostname (char *hostname, size_t len)