 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
DrPizza Guest
|
Posted: Fri Nov 07, 2003 8:16 pm Post subject: What does table 21 mean? |
|
|
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;} /* [email]drpizza (AT) battleaxe (DOT) net[/email] 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 ]
|
|
| Back to top |
|
 |
Ben Hutchings Guest
|
Posted: Mon Nov 10, 2003 6:56 pm Post subject: Re: What does table 21 mean? |
|
|
"DrPizza" wrote:
| Quote: | 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 ]
|
|
| Back to top |
|
 |
James Kuyper Guest
|
Posted: Tue Nov 11, 2003 5:01 am Post subject: Re: What does table 21 mean? |
|
|
[email]drpizza (AT) anti-flash (DOT) co.uk[/email] ("DrPizza") wrote in message news:<vqjbki5jkkm379 (AT) corp (DOT) supernews.com>...
| Quote: | 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 ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|