static int write_string(char *prefix,
			char *value,
			char *suffix,
			char **buf,
			unsigned int *maxlen)
static int write_string(char *prefix, char *value, char *suffix, char **buf,
			unsigned int *maxlen)