"Module":"string",
"Title":"string - string helper routines",
"Author":"dinesh",
"Dependencies":[
{
"depends":"ccan/talloc"
},
{
"depends":"ccan/noerr"
},
{
"depends":"ccan/typesafe_cb"
},
]
"Description":[
{
"str":""
},
{
"str":"This is a grab bag of modules for string operations, designed to enhance"
},
{
"str":"the standard string.h."
},
{
"str":""
},
{
"str":"Example:"
},
{
"str":"	#include "string/string.h""
},
{
"str":""
},
{
"str":"	int main(int argc, char *argv[])"
},
{
"str":"	{"
},
{
"str":"		if (argv[1] && streq(argv[1], "--verbose"))"
},
{
"str":"			printf("verbose set\n");"
},
{
"str":"		if (argv[1] && strstarts(argv[1], "--"))"
},
{
"str":"			printf("Some option set\n");"
},
{
"str":"		if (argv[1] && strends(argv[1], "cow-powers"))"
},
{
"str":"			printf("Magic option set\n");"
},
{
"str":"		return 0;"
},
{
"str":"	}"
},
]
