initial C import

This commit is contained in:
2017-01-03 19:13:13 +00:00
parent c7e7241d54
commit 2027d6b61e
6 changed files with 239 additions and 0 deletions

18
src/grid.h Normal file
View 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