Date: Wed, 8 Nov 1995 18:26:57 +0300 (MSK) From: =?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> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> 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: <vZ1nCem4G1@ache.dialup.demos.ru> In-Reply-To: <26374.815839706@time.cdrom.com>; from "Jordan K. Hubbard" at Wed, 08 Nov 1995 06:08:26 -0800 References: <26374.815839706@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <26374.815839706@time.cdrom.com> Jordan K. Hubbard writes: >> I can make checklist function understand NULL and do nothing >> for 'result' arg and pass char array as yet one additional arg, i.e. >> char hit[nitems]. When function returns, it will have 1 for >> selected items and 0 for others. Is it what you want here? >I'm not sure I understand this exactly. Could you perhaps clarify it >with a little function prototype and a short explanation of the >returned values? I mean: 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); free(it); -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vZ1nCem4G1>