'Files wont compile based on prototype for function I was given involving a file pointer [closed]
I receive the message: "error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token FILE *openFileForReading (char *filename);
I received the error while running a makefile for 3 files however the error was in my header file.
#include <stdio.h
#include <string.h>
#define NUMBER_REVIEWERS 10
#define NUMBER_MOVIES 3
#define MAX_STR 50
#define MAX_WORDS 10
struct reviewStruct {
char reviewer [MAX_STR];
int feedback [NUMBER_MOVIES];
}
FILE *openFileForReading (char *filename);
I am unsure how to solve this issue. Thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
