I have a question regarding the function getline():
getline(&line, &len, file_in);
where file_in is:
FILE *file_in;
char *line = NULL;
size_t len;
Every time when I read any line the allocated memory (len variable) is 120
I suppose that it is constant, because it is a default line size in a file.
1) But why 120?
2) Can this default size be changed anywhere?
3) Is there any C function that counts only written chars?