|
|
1.1 root 1:
2:
3: _ _DATE_ _ Macro _ _DATE_ _
4:
5:
6:
7:
8: Date of translation
9:
10:
11: _ _DATE_ _ is a preprocessor constant that is defined by the C
12: preprocessor. It represents the date that the source file was
13: translated. It is a string literal of the form
14:
15:
16: "Mmm dd yyyy"
17:
18:
19: where Mmm is the same three-letter abbreviation for the month as
20: is used by asctime; dd is the day of the month, with the first dd
21: being a space if translation occurs on the first through the
22: ninth day of the month; and yyyy is the current year.
23:
24: The value of _ _DATE_ _ remains constant throughout the proces-
25: sing of the a module of source code. It may not be the subject
26: of a #define or #undef preprocessing directive.
27:
28: ***** Example *****
29:
30: The following prints the preprocessor constants set by COHERENT:
31:
32:
33: main()
34: {
35:
36:
37:
38: printf("Date: %s\n", __DATE__);
39: printf("Time: %s\n", __TIME__);
40: printf("File: %s\n", __FILE__);
41: printf("Line No.: %d\n", __LINE__);
42: printf("ANSI C? %s\n", __STDC__ ? "Yes" : "No");
43:
44:
45:
46: }
47:
48:
49: ***** See Also *****
50:
51: _ _FILE_ _, _ _LINE_ _, _ _STDC_ _, _ _TIME_ _, C preprocessor
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.