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