diff --git a/fake-values.c b/fake-values.c index 691c392..82fc01a 100644 --- a/fake-values.c +++ b/fake-values.c @@ -3,10 +3,13 @@ */ #include +#include "funcs.h" int main(int argc, char *argv[]) { fprintf(stderr, "fake values - %s %s\n", __DATE__, __TIME__); +printf("%d\n", random1000(0)); + return 0; } diff --git a/funcs.c b/funcs.c index e69de29..bf47dfc 100644 --- a/funcs.c +++ b/funcs.c @@ -0,0 +1,15 @@ +/* + * funcs.c + */ + +#include +#include + +#include "funcs.h" + +int random1000(int foo) +{ +int value; +value = rand() % 1000; +return value; +} diff --git a/funcs.h b/funcs.h index e69de29..2319ac4 100644 --- a/funcs.h +++ b/funcs.h @@ -0,0 +1,6 @@ +/* + * funcs.c + */ + +int random1000(int mode); +