This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Bug in TIME function
- From: <tlake at twcny dot rr dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 12 Sep 2019 14:05:24 -0400
- Subject: Bug in TIME function
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