Talk:C date and time functions: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 53:
 
: Second, I never claimed the void cast to be required — I wrote ''should'', indicating its optional nature. Such void casts are deemed to be a good practice, because just by glancing at code you can easily tell which calls′ return values are ignored. It is a heavily used (by industry, yeah) convenience technique of the same order as prefixing struct/union member names with struct/union′s shortened name, for example:
<sourcesyntaxhighlight lang="c">struct iovec {
void *iov_base;
size_t iov_len;
};</sourcesyntaxhighlight>
: But okay, your point here is reasonable, so let′s keep the cast out and leave it to industry. I agree with your compilation and invocation point too — I tend to forget that non-UNIX operating systems exist, my bad.