🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309354

Re: fir's sicl

#309354
From: (fir)
Date: Tue, 08 Aug 2017 19:41
14 lines
2881 bytes
ogolnie pewnie powinienem zastanowic sie jakie lub jakie jeszcze funkcje tam zaimplementowac by latwo sie tego uzywalo i by sie przydawaly - mysle zwlaszcza w szczegolnosci o przypadkupisania kompilatora

o ile pamietam wczesniej zaimplementowalem funkcje FindFirstInteger(chunk) ktora zwracala pierwszego znalezionego inta - pozniej chyba przerobilem ja na krotsza funkcje o nazwie DigInt() (gdzie dig zastapilo findfirst) a uzywalo sie tego tak

   char* txt = "some: 100, 200, 300; then: 3, 4, 5, 6, 7, 8, 9; and then: -10, -20, -30; 1 2 3 4 5 6 2333333333331 1 2 3"; 

     char* p = txt; 
     int value; 

     while(DigInt(&p, &value)) AddInt(value); 

funkcja kopala integera i przesówala wskaznik  w wejsciu (akurat malo chunkowo ale prosta skladnia)

trzebby dla przykladu zastanowic sie czy kopanie slow byloby uzyteczne i jak mialoby postepowac ze znakami przestankowymi typu nawias przecinek kropka (nawet top jak kopac integery budzi o ile pamietam pewne watpliwosci zwlaszcza dotyczace minusow)
Technical Details
Message-ID: <656a99d2-f795-4519-b307-c1a73fb7d0b6@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u14no1371834ita.0!news-out.google.com!e5ni1008qta.0!nntp.google.com!w51no1301028qtc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <6950309e-21a6-436f-a500-301fc68754d5@googlegroups.com> <0c601f7b-4830-4d01-894a-9960dc6333fd@googlegroups.com> <9c9cc4ed-e8ac-43bc-9aae-89419967b92f@googlegroups.com> <9246338b-0d67-4774-a4be-6a76cd7386a7@googlegroups.com> <36fe8cff-997e-441c-8570-ef8171726ab8@googlegroups.com> <cff67bf1-eebf-416a-bd4f-e8268c4fe038@googlegroups.com> <a91a409e-3a0d-46b0-996f-7f2015b9c5db@googlegroups.com> <c75017ca-1820-43ab-865a-7d879fc6ec59@googlegroups.com> <a9c984e0-65c7-4e7b-9629-bab9f814d5e8@googlegroups.com> <07daf799-b5ab-4d75-8174-5a423735cdb9@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Received: by 10.99.96.214 with SMTP id u205mr3354784pgb.225.1502221261457;        Tue, 08 Aug 2017 12:41:01 -0700 (PDT)
X-Received: by 10.31.178.139 with SMTP id b133mr33493vkf.18.1502221261386; Tue, 08 Aug 2017 12:41:01 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u14no1371834ita.0!news-out.google.com!e5ni1008qta.0!nntp.google.com!w51no1301028qtc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.c
Date: Tue, 8 Aug 2017 12:41:01 -0700 (PDT)
In-Reply-To: <07daf799-b5ab-4d75-8174-5a423735cdb9@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.172.255.210; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.210
References: <6950309e-21a6-436f-a500-301fc68754d5@googlegroups.com> <0c601f7b-4830-4d01-894a-9960dc6333fd@googlegroups.com> <9c9cc4ed-e8ac-43bc-9aae-89419967b92f@googlegroups.com> <9246338b-0d67-4774-a4be-6a76cd7386a7@googlegroups.com> <36fe8cff-997e-441c-8570-ef8171726ab8@googlegroups.com> <cff67bf1-eebf-416a-bd4f-e8268c4fe038@googlegroups.com> <a91a409e-3a0d-46b0-996f-7f2015b9c5db@googlegroups.com> <c75017ca-1820-43ab-865a-7d879fc6ec59@googlegroups.com> <a9c984e0-65c7-4e7b-9629-bab9f814d5e8@googlegroups.com> <07daf799-b5ab-4d75-8174-5a423735cdb9@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <656a99d2-f795-4519-b307-c1a73fb7d0b6@googlegroups.com>
Subject: Re: fir's sicl
From: "(fir)" <profesor.fir@gmail.com>
Injection-Date: Tue, 08 Aug 2017 19:41:01 +0000
Lines: 23
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit