home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!s37732v
- From: s37732v@snakemail.hut.fi (Markus Juhani Aalto)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Please help with stupid memory leak
- Date: 08 Jan 93 16:14:28 GMT
- Organization: Helsinki University of Technology, Finland
- Lines: 39
- Distribution: inet
- Message-ID: <S37732V.93Jan8181428@lk-hp-20.hut.fi>
- References: <C0ICKI.H57@usenet.ucs.indiana.edu>
- NNTP-Posting-Host: lk-hp-20.hut.fi
- In-reply-to: shulick@navajo.ucs.indiana.edu's message of 7 Jan 93 23:43:26 GMT
-
- In article <C0ICKI.H57@usenet.ucs.indiana.edu> shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
-
- I can't figure this one out. It seems to not free either 56 bytes or
- 296. Anyway, the usage is: req <title> <text> <choice1> [choice]...
- Some examples:
- req Problem "There's a bug in here." "Kill it" "Hang it" Cancel
-
- Well, it doesn't free up memory, but I can't figure out WHAT.. any help
- would be appreciated.
-
- [ Lot of deleted here ...]
-
- void main(int ac, char **av)
- {
- int x, len;
- char workstr[BUFSIZ];
-
- memset(arr, '\0', sizeof(arr));
- /* Oh, ReadArgs() is so nice.. :) */
- if (!(rd = ReadArgs("Title/A,Text/A,Choice1/A,Choices/F", arr, NULL)))
- {
- fprintf(stderr, "required argument missing\n");
- bye();
- }
-
-
- You should use FreeArgs(rd) to free memory allocated by ReadArgs().
-
- --
-
-
- **************************************************************************
- * Markus Aalto | Helsinki University of Technology *
- * | *
- * EMail: s37732v@vipunen.hut.fi | Faculty of Electric Engineering *
- * Fax: 358-0-8746991 (Sometimes) | *
- * | Undergraduate in Computer Science *
- **************************************************************************
-
-