I have a function that takes in a text file and I want to loop through the characters and check if a character is an emoji or not. I have this code to loop though the characters:
while ((c = fgetc(input_fd)) != EOF) { //input_fd is of type FILE *
printf("%c", c);
if () { //If character is emoji
printf("Invalid: %c \n", c);
}
}
What would I have to put in the if statement to check if c is an emoji or not?