Re: Using gcc'isms



On Wed, Jun 24, 1998 at 10:41:14AM +0200, Hrvoje Niksic wrote:
> > I noticed that some of the examples on the web page use things like
> > alloca() and snprintf().
> 
> Neither of which is a gcc extension.  alloca() is available on most of
> the modern platforms, and it can be easily simulated on others; see
> `alloca.c' that comes with many GNU programs.  snprintf() is just a
> library function, with a free replacement floating on the net.

I think most use g_snprintf which is available everywhere where 
glib lives

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]