hi
i trying to get from anywhere in text to the beginning of the line. i wrote this litle piece of code (just an extract from my prog):
in size_t apos is stored the begining of the text, to make sure i wont read to far. i need tmppos to check that.Code:while((tmppos!=apos) && (c=fgetc(fr))!='\n') { fseek(fr,-2,SEEK_CUR); fgetpos(fr,&tmppos); }
any idea?
thanks