This code seems to contain many errors, but the most evident to me is
while((ch!='"') || (ch!='>')) /*until we get the end of header name*/
I would say that every character is either different from '"'
or from '>'
… or do you know a character that can be equal to both? 😉
5
solved Can’t find mistake — ‘segmentation fault’ – in C