Use new datatypes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <popt.h>
|
#include <popt.h>
|
||||||
|
#include "grid.h"
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
char c;
|
char c;
|
||||||
@@ -21,7 +22,9 @@ int main(int argc, char* argv[]) {
|
|||||||
fprintf(stderr, "%s: %s\n", poptBadOption(ctx, POPT_BADOPTION_NOALIAS), poptStrerror(c));
|
fprintf(stderr, "%s: %s\n", poptBadOption(ctx, POPT_BADOPTION_NOALIAS), poptStrerror(c));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
printf("width: %d\n", width);
|
mazegrid_t g = mazegrid_new(width, height);
|
||||||
printf("height: %d\n", height);
|
mazegrid_randomize(&g);
|
||||||
|
mazegrid_print(&g, stdout);
|
||||||
|
mazegrid_free(&g);
|
||||||
poptFreeContext(ctx);
|
poptFreeContext(ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user