In another part of my code which You can't see, there is a edition tool. It bases on strcmp(). Actually it's like line 55, but it goes this:
So after removing '\n' it will crash won't it? Beacause I will have to compare: 'TITLE\0' vs 'TITLE\0\n' right?Code:printf("What is the tiitle of the book?\n"); fgets(tmp,50,stdin); for(a=0;a<50;a++) if(strcmp(base[a].title,tmp)==0) { edition bla bla }