I recently found that setting the file position indicator using WRITE() and the POS specifier seems to set the position one byte further than fseek() in C would. Basically, the following code would NOT put your file position back to the same location:
The intel compiler behaves like fseek() in this respect. Since I need to port my code between the two compilers, I want to solve this using the preprocessor. Is there a standard PP defition that identifies the PGI compiler? I can’t find it in any manual.