Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/time.cfa

    rce0b8b8 rcd1d721  
    1010// Created On       : Tue Mar 27 17:24:56 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 19 08:06:59 2024
    13 // Update Count     : 75
     12// Last Modified On : Thu Jul 18 21:56:01 2024
     13// Update Count     : 64
    1414//
    1515
     
    1818#include <stdlib.h>                                                                             // putenv
    1919
    20 extern "C" size_t malloc_unfreed() { return 1024; }             // guess at unfreed storage from putenv
     20extern "C" size_t malloc_unfreed() { return 337; }              // unfreed storage from tzset
    2121
    2222int main() {
    2323        // Set fixed time location to obtain repeatable output where ever run.
    24         putenv( "TZ=America/Toronto" );                                         // set fixed time zone
    25         // tzset has the stupidest interface I have ever seen.
     24        putenv("TZ=America/Toronto");                                           // set fixed time zone
    2625        tzset();                                                                                        // set time zone
    2726
     
    8281    sout | buf;
    8382} // 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.