I am trying to print out a file using this code but I keep getting the error that asks me to use strtol instead of fscanf on clion.
#include <stdlib.h>
#include <stdio.h>
#define SSIZE 20
int main(void) {
FILE *fin;
int i;
float f;
char string[SSIZE];
/* maximum SIZE of string, including NUL */
/* define a file pointer */
/* define variables to store data */
fin = fopen("data.txt", "r");
fscanf(fin, "%d %f %s", &i, &f, string);
/* open data.txt file for read */
/* read file and save data to variables */
printf("%d %f %s\n", i, f, string);
/* print values of variables to screen */
fclose(fin);
/* close file properly */
return 0;
}