[gccsdk] [Bug 223] New: Test case produces corrupted output instead of current date and time.

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sat Sep 24 11:06:15 PDT 2011


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: peter at chocky.org
        ReportedBy: chrisg at 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.




More information about the gcc mailing list