Re: improve that function (bytes_dig_int)

Liste des GroupesRevenir à l c 
Sujet : Re: improve that function (bytes_dig_int)
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.c
Date : 03. Apr 2024, 22: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;
}

Date Sujet#  Auteur
3 Apr 24 * improve that function (bytes_dig_int)6fir
3 Apr 24 +* Re: improve that function (bytes_dig_int)2fir
3 Apr 24 i`- Re: improve that function (bytes_dig_int)1fir
9 Apr 24 `* Re: improve that function (bytes_dig_int)3Tim Rentsch
12 Apr 24  `* Re: improve that function (bytes_dig_int)2fir
13 Apr 24   `- Re: improve that function (bytes_dig_int)1Tim Rentsch

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal