Änderung 2 vom 24.10
This commit is contained in:
parent
673b381e04
commit
2d9fc96112
@ -9,9 +9,9 @@
|
|||||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||||
{
|
{
|
||||||
//kein fopen und close nötig, weil dies schon in der main passiert und mit *file übergeben wird//
|
//kein fopen und close nötig, weil dies schon in der main passiert und mit *file übergeben wird//
|
||||||
|
|
||||||
|
|
||||||
if (!file)
|
|
||||||
|
if (file == NULL)
|
||||||
{
|
{
|
||||||
perror("Error invalid pointer to file");
|
perror("Error invalid pointer to file");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user