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