I keep getting this error when I try to pass these char values to bool function:
#include <stdio.h>
#include <stdbool.h> 
    
bool checksub(char *s1, char *v) {
  if (*s1==*v){
    return true;
  }
}
    
int main(void) {
  printf(checksub("a","a"));
}
Is that why I keep getting this error or is it a different reason?
segmentation fault (core dumped)
 
     
     
    