Re: main() in C90



Richard Heathfield wrote:
CBFalconer said:

A struct tm is built by mktime,

The Standard does not require this. It's perfectly feasible (and
commonplace) for people to roll their own struct tm objects. Nor
is mktime the only standard function that builds a struct tm.

I had the impression (possibly wrong) that the functions that
created a struct tm operated on unspecified format system data, and
thus had to be part of the library. In light of that I considered
any other method to be an extension, whose correctness is entirely
up to the extender.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.


--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: strict aliasing rules in ISO C, someone understands them ?
    ... > I try to understand strict aliasing rules that are in the C Standard. ... > Let's have two struct having different tag names, ... > struct s1 {int i;}; ... Accessing a member of the foreign structure type through the pointer ...
    (comp.lang.c)
  • Re: Yet another binary search tree library
    ... Some information in this wikipedia page is wrong. ... if there is undefined behavior or not (not counting ... As far as the Standard is concerned, ... kind of struct by means of member access (ie, ...
    (comp.lang.c)
  • Re: Why is C Standard Code Example Invalid?
    ... JK> that a declaration of the complete type of the union is ... the safest bet is to take the standard at it's ... struct t1; ... "E.MOS", which would suggest that the implicit dereference occurs, but ...
    (comp.std.c)
  • Re: Yet another binary search tree library
    ... alignment requirement as its first member (since there's no padding at ... As far as the Standard is concerned, ... uses an undefined construct the result is undefined behavior. ... a designator that is a different kind of struct. ...
    (comp.lang.c)
  • New C features proposal
    ... As the committee gathered to discuss how the new C standard will look ... struct node *next; ... void message(const char *msg, ... The `inline` keyword would mean that all the members of the ...
    (comp.std.c)