Topic: Unix C, ANSI C


Author: rridge@calum.csclub.uwaterloo.ca (Ross Ridge)
Date: 1995/07/23
Raw View
n4521661 (Zijian.Huang@ncl.ac.uk) wrote:
>As you know, there are many difference between UNIX C(++) and
>ANSI C(++). Some of the library functions like 'strtoul' is defined
>in ANSI C, but not in UNIX C. This may be because the history reason.
>While UXIX C++ appear, why don't they introduce more library functions
>to make UNIX C++ compiler to be more close to ANSI standard???

Stephen Baynes <baynes@ukpsshp1.serigate.philips.nl> wrote:
>POSIX requires the ANSI/ISO C library and I think it requires an ANSI/ISO C
>compiler to be available.

Neither POSIX.1 or POSIX.2 require a (complete) ANSI/ISO C library or
an ANSI/ISO C compiler.  The later is only an option in .2.

       Ross Ridge

--
 l/  //   Ross Ridge -- The Great HTMU                         +1 519 883 4329
[oo][oo]  rridge@csclub.uwaterloo.ca      http://csclub.uwaterloo.ca/u/rridge/
-()-/()/
 db  //





Author: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
Date: 1995/07/20
Raw View
n4521661 (Zijian.Huang@ncl.ac.uk) wrote:
: As you know, there are many difference between UNIX C(++) and
: ANSI C(++). Some of the library functions like 'strtoul' is defined
: in ANSI C, but not in UNIX C. This may be because the history reason.
: While UXIX C++ appear, why don't they introduce more library functions
: to make UNIX C++ compiler to be more close to ANSI standard???

POSIX requires the ANSI/ISO C library and I think it requires an ANSI/ISO C
compiler to be available. However not all older unix systems are POSIX
compilent. I am not aware if it is intended to require that UNIX should have
ANSI/ISO C++ as a prerequisite when it becomes available.

--
Stephen Baynes                              baynes@mulsoc2.serigate.philips.nl
Philips Semiconductors Ltd
Southampton                                 My views are my own.
United Kingdom





Author: n4521661 <Zijian.Huang@ncl.ac.uk>
Date: 1995/07/13
Raw View
As you know, there are many difference between UNIX C(++) and
ANSI C(++). Some of the library functions like 'strtoul' is defined
in ANSI C, but not in UNIX C. This may be because the history reason.
While UXIX C++ appear, why don't they introduce more library functions
to make UNIX C++ compiler to be more close to ANSI standard???

Zijian Huang
E-mail:  zijian.huang@ncl.ac.uk
Tel: (UK) + 0421  377903