The code below returns -1. It shouldn't.

 

#include <sys/times.h>

#include <stdio.h>

 

int main(int argc, char *argv[])

{

  printf("return value %ld\n", (long)times((struct tms*)0));

  return 0;

}

 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to