c-template
random.h
Go to the documentation of this file.
1 
2 #include "returns.h"
3 
4 int get_random_number(int lower, int upper);
5 cg_return *get_random_string(int stringLength);
6 
7 // defines a constant character array
8 const char letters[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
9 
letters
const char letters[26]
Definition: random.h:8
get_random_string
cg_return * get_random_string(int stringLength)
Definition: random.c:7
cg_return
allows returning both a value and error message from a function call useful as it makes it easier to ...
Definition: returns.h:14
get_random_number
int get_random_number(int lower, int upper)
Definition: random.c:22
returns.h