Thank, quzah. I got the file to open. Now I tried using fgets() to read a line and tried to tokenize it by using strtok(). But for some reason it's tokenizing the lines by 4 characters only. I don't know if this is allowed, but this is what I have so far,
When i run this all the tokens are broken up in 4 bytes. Oh this is the file that it's reading.
int main(int argc, char **argv)
char* file = "Smakefile";
FILE* fp = fopen(file, "rb");
line = (char*) malloc(sizeof(100));
line = fgets(line, sizeof(line), fp);
token = strtok(line, ":");
printf("%s %d\n", token, sizeof(line));
Thank you in advance again.
main : main.o other.o echo
gcc -o main main.o other.o