29 static const char *
const strings[] = {
51 " foo bar : blahblah",
53 "'foo : \\ \\ ' : blahblah",
54 "'\\fo\\o:': blahblah",
55 "\\'fo\\o\\:': foo ' :blahblah"
58 printf(
"Testing av_get_token()\n");
60 const char *p = strings[i];
64 printf(
" -> |%s|", q);
65 printf(
" + |%s|\n", p);
69 printf(
"Testing av_append_path_component()\n");
70 #define TEST_APPEND_PATH_COMPONENT(path, component, expected) \
71 fullpath = av_append_path_component((path), (component)); \
72 printf("%s = %s\n", fullpath ? fullpath : "(null)", expected); \
memory handling functions
char * av_get_token(const char **buf, const char *term)
Unescape the given string until a non escaped terminating char, and return the token corresponding to...
#define FF_ARRAY_ELEMS(a)
common internal and external API header
#define TEST_APPEND_PATH_COMPONENT(path, component, expected)