this compiles without errors or warnings on Dev-C++

int main()
char line[255];
float array[255] = {0};
int i = 0;
FILE* fp = fopen("myfile","r");
while( fgets(line, sizeof(line), fp) != NULL)
     char *ptr = strtok(line," ");
     while( ptr != NULL)
           array[i] = atof(ptr);
           ptr = strtok(NULL, " ");

No yet i get the warning from DEV about the cast (As i said in previous post)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.