mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-12-16 07:19:05 +00:00
initial C import
This commit is contained in:
18
src/grid.h
Normal file
18
src/grid.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef WORDSEARCH_GRID
|
||||
#define WORDSEARCH_GRID
|
||||
|
||||
#define WORDSEARCH_MAXTRIES 500
|
||||
|
||||
char** makegrid (char** words, int height, int width, int simple);
|
||||
|
||||
typedef struct bounds {
|
||||
int min_y;
|
||||
int max_y;
|
||||
int min_x;
|
||||
int max_x;
|
||||
} bounds;
|
||||
|
||||
/* returns NULL if cannot fit word; caller needs to free() the response */
|
||||
bounds* get_bounds(int height, int width, enum direction direction, int length);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user