gptr may equal to egptr