Sujet : Re: improve that function (bytes_dig_int)
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.cDate : 03. Apr 2024, 21:47:45
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <uukf9l$3vkll$1@i2pn2.org>
References : 1
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
fir wrote:
void BytesTest()
{
bytes_load("some.txt");
>
while(bytes_cursor<bytes_size)
{
int value = bytes_dig_int_from_cursor();
if(bytes_cursor>bytes_size) break;
printf("\n %d", value);
}
}
>
as to this part i was thinking that using the bytes_cursor
(or how to call it better) would be good idea and would simplify
the usage of it but this loop is also overcomp0-lex so im not sure
if to using sorta global variable (like "none") wouldnt be better here
thsi is odlschool idea and i dont seen its used today but here it
is just simple
for(;;)
{
int value = dig_int();
if(none) break;
}