I have some code I have written to test whether a blank line has been reached in the music file but I am not familiar with how to return a Boolean statement as true in C. When I run make I am getting an error that says helpers.c:22:1: error: control reaches end of non-void function [-Werror,-Wreturn-type] and it shows one of the brackets. Here is the codes,
bool is_rest(string s)
{
string blank = "";
int value = strncmp(s, blank, 1);
if (value == 0)
{
return 1;
}
}