[net.unix-wizards] long vs. int [2] in ctime and time for unix v6

gds@Mit-Csr.ARPA (03/30/84)

I discovered the trouble.  I made a mistake.  The correct code is included.
One question, can one alternate legally between int [2] and long or must they
be converted to each other?

main()
{

          char *t;
          long tod;
          time(&tod);
          t = ctime(&tod); /* weird behavior */
          printf("%s\n", t);
}

-------