http://www.riscos.info/bugzilla3/show_bug.cgi?id=223

           Summary: Test case produces corrupted output instead of current
                    date and time.
           Product: GCC/GCCSDK
           Version: other
          Platform: All
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Unixlib and SharedCLibrary
        AssignedTo: pe...@chocky.org
        ReportedBy: chr...@care4free.net
   Estimated Hours: 0.0


#include <stdio.h>
#include <time.h>

int main(void) {

  time_t result;
  result = time(NULL);

  printf("%s\n", asctime(localtime(&result)));

  return 0;

}

Tested with current revision of GCCSDK 4.1.2.

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to