Hi,
I want to store chars from a file to buffer 'buf_P', when reachs zero char, I want to print what is stored in the buffer and update the buf_P to hold new array of chars
Code:.. .. char buf_P[300]; int n; n=0; .. .. while((ch=getc(fp))!=EOF) { if(ch!=0) { //store it to buffer //buf_P[n]=ch; //n++; } else { //print the string //update the buf_P } }.. ..