Topic: What does table 21 mean?


Author: drpizza@anti-flash.co.uk ("DrPizza")
Date: Fri, 7 Nov 2003 20:16:24 +0000 (UTC)
Raw View
It's not listing the functions that ctime should contain -- 18.7 para 1
suggests that ctime should contain time(), and paragraph 2 says that ctime
should contain everything from time.h.  If this is the case, why are the
functions from time.h (asctime(), clock(), ctime(), difftime(), gmtime(),
localtime(), mktime(), strftime(), time()) not listed in table 21?  What's
special about clock()?

--
Now Playing:  DuMonde - God Music (Original Mix)


char a[99999],*p=a;main(c,V)char**V;{char*v=c>0?1[V]:V;if(c)for(;(c=*v)&&93^
c;p+=!(62^c)-!(60^c),*p+=!(43^c)-!(45^c),44^c||read(0,p,1),46^c||putchar(*p)
,91^c||(v=*p?main(-1,v+1),v-1:main(0,v)),++v);else for(;c+=!(91^*v)-!(93^*v)
;++v);return v;} /* drpizza@battleaxe.net    brainf*** program as argv[1] */


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: do-not-spam-benh@bwsint.com (Ben Hutchings)
Date: Mon, 10 Nov 2003 18:56:23 +0000 (UTC)
Raw View
"DrPizza" wrote:
> It's not listing the functions that ctime should contain -- 18.7 para 1
> suggests that ctime should contain time(), and paragraph 2 says that ctime
> should contain everything from time.h.  If this is the case, why are the
> functions from time.h (asctime(), clock(), ctime(), difftime(), gmtime(),
> localtime(), mktime(), strftime(), time()) not listed in table 21?  What's
> special about clock()?

The rest of <ctime> is described in clause 20.5 ("Date and time").  clock()
is described in clause 18 ("Language support") because it returns an amount
of time used, probably discontinuously, rather than a point or duration in
real time.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: kuyper@wizard.net (James Kuyper)
Date: Tue, 11 Nov 2003 05:01:32 +0000 (UTC)
Raw View
drpizza@anti-flash.co.uk ("DrPizza") wrote in message news:<vqjbki5jkkm379@corp.supernews.com>...
> It's not listing the functions that ctime should contain -- 18.7 para 1
> suggests that ctime should contain time(), and paragraph 2 says that ctime
> should contain everything from time.h.  If this is the case, why are the
> functions from time.h (asctime(), clock(), ctime(), difftime(), gmtime(),
> localtime(), mktime(), strftime(), time()) not listed in table 21?  What's
> special about clock()?

Tables 19 through 23 list only those parts of the C standard library
that they've chosen to classify as "Other runtime support". <cstdlib>,
in particular, contains a great many more things than are listed in
Table 23. For instance, malloc() is listed in Table 33.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]