o.k. - thanks for all the responses from everyone.
i'll go pester another newgroup :)
Quote:
> On Fri, 27 Aug 1999 16:34:06 GMT,
Quote:
> wrote in comp.lang.c.moderated:
> > follow-up to my last post: i looked in
stdlib.h and these functions
Quote:
> > are guarded by :
> > #if defined(__EXTENSIONS__) || \
> > (__STDC__ == 0 &&
!defined(_POSIX_C_SOURCE)) || \
Quote:
> > (defined(_XOPEN_SOURCE) &&
(_XOPEN_VERSION - 0 == 4))
Quote:
> > so i guess i should change my question: does
anyone know what the
Quote:
> > general rules are for when you should define
these things or what
Quote:
> > exactly should be defined? i ran into a
similar problem earlier
Quote:
> > trying to use fdopen.... at some level it
allmost seems like the
Quote:
> > compiler should be doing this for me; i
checked gcc options though
Quote:
> > and it doesn't have anything like this.
> The problem is that with one exception, the
functions you are asking
Quote:
> about in this post and the first one are not
standard C. time() is an
Quote:
> ANSI/ISO standard function, but it is prototyped
in <time.h> and not
> <stdlib.h>.
> As for srand48(), drand48(), and fdopen(), they
literally are not part
Quote:
> of the C language but are compiler and OS
specific extensions.
Quote:
> fdopen() is part of the POSIX standard, the
others aren't part of any
Quote:
> standard at all.
> You are most likely compiling with some switch
for ANSI conformance,
Quote:
> which causes the guards like the one you posted
to make the
> non-standard extensions disappear.
> You really need to ask in one of the
Quote:
> what command line switches you should be using.
> Jack Klein
> --
> Home: http://home.att.net/~jackklein
> --
> comp.lang.c.moderated - moderation address:
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
--