Hi Guys,
I have written the below code but still need to remove the null terminator at the end of each string but don't know how. I've try strtcpy , srtcncpy but doesn't work. Any ideas would be highly appreaciated. thanks.
while (!feof(fp)) {
fgets(line,LINE_BUF,fp);
count++;
strcat(string1,line);
printf( " %s %d %d\n ", string1, strlen(string1) ,count );
strcpy(string1,BLANK);
}
harbry.