added forgotten <sting.h>
This commit is contained in:
1 parent
b2d4ac22a2
commit
d9ac9f27e1
1 file changed
+3
-2
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
#include "graphicalGame.h"
|
#include "graphicalGame.h"
|
||||||
@@ -77,14 +78,14 @@ int main(int argc, char *argv[])
|
|||||||
// Start the game if successful
|
// Start the game if successful
|
||||||
// error message if some words couldn't be placed
|
// error message if some words couldn't be placed
|
||||||
|
|
||||||
int check = checkSalad(char words[][MAX_WORD_LEN], char wordSalad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], int placedWords, int wordCount);
|
int check = checkSalad(words, wordSalad, placedWords, wordCount);
|
||||||
//Fehlerfall
|
//Fehlerfall
|
||||||
if(check != 0){
|
if(check != 0){
|
||||||
fprintf(stderr, "Not all words could be placed!\n");
|
fprintf(stderr, "Not all words could be placed!\n");
|
||||||
exitCode = EXIT_FAILURE;
|
exitCode = EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
//keine Ahnung wiegroß pixelSize sein soll
|
//keine Ahnung wiegroß pixelSize sein soll
|
||||||
startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords, MAX_SEARCH_FIELD_LEN * 20);
|
startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords, MAX_SEARCH_FIELD_LEN * SALAD_SIZE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user