14 #define ALN_API_EXPORT __declspec(dllexport)
15 #define ALN_API_IMPORT __declspec(dllimport)
17 #define ALN_API_EXPORT __attribute__((visibility("default")))
18 #define ALN_API_IMPORT
21 #ifdef ALN_LIBRARY_BUILD
22 #define ALN_API ALN_API_EXPORT
24 #define ALN_API ALN_API_IMPORT
50 ALN_API
ALN *
aln_new(
unsigned int count,
unsigned int min,
unsigned int max,
ALN_API int aln_draw_number(ALN *aln, unsigned int *number)
Draws a single lucky number.
Definition: aln.c:85
ALN_API int aln_draw_all(ALN *aln)
Draws all remaining lucky numbers.
Definition: aln.c:124
ALN_API void aln_reset(ALN *aln)
Resets an ALN instance.
Definition: aln.c:70
ALN_API unsigned int aln_get_number(const ALN *aln, unsigned int index)
Gets a specific lucky number by index.
Definition: aln.c:138
ALN_API ALN * aln_new(unsigned int count, unsigned int min, unsigned int max, int allow_repeat)
Creates a new ALN instance.
Definition: aln.c:18
ALN_API void aln_free(ALN *aln)
Frees an ALN instance.
Definition: aln.c:61