I have small problem with my C code. I want to read file until I hit certain character or EOF (from parameter as seen now). char *readUntil(FILE *stream, char character, size_t *length)
I used this loop:int i = 0
while((i = fgetc(stream)) != character || i != EOF){}
to read it until stream ends or character is matched. However it doesnt seem to be working. What's the problem and how to fix it?