38 lines
620 B
C
38 lines
620 B
C
/*
|
|
* fake-values.c
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "funcs.h"
|
|
|
|
int verbosity;
|
|
|
|
/* --------------------------------------------------------------- */
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
int opt;
|
|
|
|
while ((opt = getopt(argc, argv, "vs")) != -1) {
|
|
switch (opt) {
|
|
case 'v': verbosity++; break;
|
|
case 's': srand(getpid()); break;
|
|
default: break;
|
|
}
|
|
}
|
|
|
|
if (verbosity > 1) {
|
|
fprintf(stderr, "fake values - %s %s\n", __DATE__, __TIME__);
|
|
}
|
|
|
|
|
|
printf("%f %d\n", dtime(), random1000(0));
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* --------------------------------------------------------------- */
|