-1 offset with SEEK_END is the last element