Really mean it about strict C99 compliance.
This commit is contained in:
parent
4beb21e08f
commit
519d8f07e6
5 changed files with 15 additions and 6 deletions
7
misc.c
7
misc.c
|
@ -2,6 +2,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include "main.h"
|
||||
#include "share.h" /* for SETUP */
|
||||
#include "misc.h"
|
||||
|
@ -1002,5 +1003,11 @@ L30: if(IN)IGNORE(fread(ARR,sizeof(long),250,F));
|
|||
|
||||
|
||||
|
||||
void DATIME(long* D, long* T) {
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
*D = (long) tv.tv_sec;
|
||||
*T = (long) tv.tv_usec;
|
||||
}
|
||||
long fIABS(N)long N; {return(N<0? -N : N);}
|
||||
long fMOD(N,M)long N, M; {return(N%M);}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue