pay attention to fgetpos return value.