Sujet : Re: macro for fir list?
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.cDate : 30. Mar 2024, 12:08:34
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <uu8ob1$3h0ko$1@i2pn2.org>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
fir wrote:
>
one could also write a one line add version, i hope its right
>
int* ints = NULL; int ints_size = 0;
>
void ints_add(int
val){(ints=(int*)realloc(ints,++ints_size*sizeof(int)))[ints_size-1]=val;}
>
i think teh above can be seen somewhat as something like my own e=mc2 ;c
saying something as joke , i found some of my other statements on c also quite interesting - call queue ide is not bad escp there is a hope it could help in multithreading..improvements to c also
sad im feelin terribly old and almost nothing done in some fields, and
feeling old im not in a form