Article View: pl.comp.os.linux.programowanie
Article #60166Re: Jak zrobić program obliczający dużą silnię?
From: Jacek Popławski
Date: Wed, 26 Oct 2005 12:52
Date: Wed, 26 Oct 2005 12:52
24 lines
1756 bytes
1756 bytes
> int foo(char *data)
> {
> char *tmp;
> int value;
> void *ptr;
>
> tmp = malloc(123);
result=TwojeWhile(data)
switch (result)
{
case RESULT_WARNING:
> log("warning, blabla\n");
> free(tmp);
> return 0;
case RESULT_ERROR:
> error:
> log("error, blabla\n");
> free(tmp);
> return -1;
> }
Co jest złego w takim rozwiązaniu?
Technical Details
Message-ID:
<djnu60$s25$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl> <djnq2f$9i4$1@inews.gazeta.pl> <djnqvu$be7$2@atlantis.news.tpi.pl> <djntuu$1l4$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Jacek Popławski <jpopl@interia.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: Re: Jak zrobić program obliczający dużą silnię? Date: Wed, 26 Oct 2005 14:52:10 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 24 Message-ID: <djnu60$s25$1@atlantis.news.tpi.pl> References: <djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl> <djnq2f$9i4$1@inews.gazeta.pl> <djnqvu$be7$2@atlantis.news.tpi.pl> <djntuu$1l4$1@inews.gazeta.pl> NNTP-Posting-Host: ns.s3group.com.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1130331136 28741 212.160.116.222 (26 Oct 2005 12:52:16 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Wed, 26 Oct 2005 12:52:16 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en In-Reply-To: <djntuu$1l4$1@inews.gazeta.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit