if (boolvalue != NULL) *boolvalue = O_ISSET(sp, offset);
api_opts_get(sp, name, value)	SCR *sp;	char *name, **value;{	int offset;	OPTLIST const *op;	if ((op = opts_search(name)) == NULL)		return (1);	offset = op - optlist;	switch (op->type) {	case OPT_0BOOL:	case OPT_1BOOL:		MALLOC_RET(sp, *value, char *, strlen(op->name) + 2 + 1);		(void)sprintf(*value,		    "%s%s", O_ISSET(sp, offset) ? "" : "no", op->name);		break;	case OPT_NUM:		MALLOC_RET(sp, *value, char *, 20);		(void)sprintf(*value, "%ld", (u_long)O_VAL(sp, offset));		break;	case OPT_STR:		if (O_STR(sp, offset) == NULL) {			MALLOC_RET(sp, *value, char *, 2);			value[0] = '\0';		} else {			MALLOC_RET(sp,			    *value, char *, strlen(O_STR(sp, offset)) + 1);			(void)sprintf(*value, "%s", O_STR(sp, offset));		}		break;	}	return (0);}