#include <stdio.h>
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
#define alloc |
( |
|
TYPE | ) |
((TYPE *) tmalloc(sizeof(TYPE))) |
#define eq |
( |
|
a, |
|
|
|
b |
|
) |
| (!strcmp((a), (b))) |
Value:((((
c) >=
'0') && ((
c) <=
'9')) ? ((
c) -
'0') : ((((
c) >= \
'a') && ((
c) <=
'f')) ? ((
c) -
'a' + 10) : ((((
c) >=
'A') && \
((
c) <=
'F')) ? ((
c) -
'A' + 10) : 0)))
Definition at line 31 of file misc.h.
#define isalphanum |
( |
|
c | ) |
(isalpha(c) || isdigit(c)) |
#define tfree |
( |
|
x | ) |
(txfree((char*)x), x = 0) |
Definition at line 37 of file time.c.
41 #if defined(HAVE_GETTIMEOFDAY) || defined(HAVE_TIMES) 46 #ifdef HAVE_GETTIMEOFDAY 50 (void) gettimeofday(&tv, &tz);
51 tp = localtime(&tv.tv_sec);
57 tp = localtime(&tloc);
Definition at line 103 of file time.c.
107 unsigned long tics = (
unsigned long)dos_tics();
108 return ((
double) tics*0.054945);
110 #ifdef HAVE_GETTIMEOFDAY 114 (void) gettimeofday(&tv, &tz);
116 (tv.tv_sec + (
double) tv.tv_usec / 1000000.0);
119 struct timeb timenow;
123 timediff(&timenow, &timebegin, &sec, &msec);
124 return (sec + (
double) msec / 1000.0);
127 return ((
double)clock()/(
double)CLK_TCK);