Date: Wed, 08 Nov 1995 15:42:41 -0800 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su> Cc: FreeBSD hackers <freebsd-hackers@freebsd.org>, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Subject: Re: Ack! Help, Andrey! I'm having troubles in libdialog! Message-ID: <29558.815874161@time.cdrom.com> In-Reply-To: Your message of "Wed, 08 Nov 1995 18:26:57 %2B0300." <vZ1nCem4G1@ache.dialup.demos.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> char *it = malloc(nitems);
>
> ... dialog_checklist(..., NULL, it);
> \ \
> result new argument
>
> for (i = 0; i < nitems; i++)
> if (it[i])
> printf ("Item #%d choosed\n", i);
Hmmm. Since we're making such changes, why not just replace the
result string with an array for checklist items? You'll need to go
whack on the dialog(1) stuff anyway or get warnings about the missing
parameter. The way it currently returns one string with newlines, all
concatenated together, is pretty bogus anyway and I can't see any
reason to preserve that behavior.
Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29558.815874161>
