while(!feof(file))
{
int len = strlen(buf)-1;
char c;
c=fgetc(file);
if(c!='\0')
{
buf[len+1]=c;
int i;
for(i=0; i<n; i++)
{
if(strcmp(buf, dict[i].code)==0)
{
putc(dict[i].ch, stdout);
strcpy(buf, "");
break;
}
}
}
}
Pojawia się taki błąd:
Never use <bits/string3.h> directly; include <string.h> instead.
Nie rozumiem dlaczego to się pojawia. Oczywiście string.h jest includowany.