- Timestamp:
- Jul 19, 2024, 8:06:28 AM (3 months ago)
- Branches:
- master
- Children:
- 8dc6f84
- Parents:
- 3ee4a53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/time.cfa
r3ee4a53 rb8561fa 10 10 // Created On : Tue Mar 27 17:24:56 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 18 22:45:43202413 // Update Count : 6512 // Last Modified On : Fri Jul 19 08:05:04 2024 13 // Update Count : 74 14 14 // 15 15 … … 18 18 #include <stdlib.h> // putenv 19 19 20 extern "C" size_t malloc_unfreed() { return 385; } // unfreed storage fromtzset20 extern "C" size_t malloc_unfreed() { return 1024; } // guess at unfreed storage from putenv/tzset 21 21 22 22 int main() { 23 23 // Set fixed time location to obtain repeatable output where ever run. 24 24 putenv( "TZ=America/Toronto" ); // set fixed time zone 25 // tzset has the stupidest interface I have ever seen. 25 26 tzset(); // set time zone 26 27 … … 81 82 sout | buf; 82 83 } // main 83 84 // Local Variables: //85 // mode: c //86 // tab-width: 4 //87 // compile-command: "cfa time.cfa" //88 // End: //
Note: See TracChangeset
for help on using the changeset viewer.