<div dir="ltr"><div>Hi MarkusM and all,</div><div><br></div><div>I'm trying to understand if the Segment_open() [1] function fills with zeros or not. I don't think it does since it is calling G_malloc (malloc) or Segment_format_nofill(). However, it is not completely clear to me what is supposed to be doing because documentation still says it calls Segment_format() and I don't understand context of the related commit [2, 3] and the usage of lseek and USE_LSEEK are not clear to me from format.c [4].<br></div><div><br></div><div>Markus, can you please clarify that for me? I will then update the documentation with whatever is needed.<br></div><div><br></div><div>Thanks,</div><div>Vaclav<br></div><div><br></div><div>[1] <a href="https://grass.osgeo.org/programming7/segment_2open_8c.html#ae24d2e794c66c0512b67d7cea8b2ba9a">https://grass.osgeo.org/programming7/segment_2open_8c.html#ae24d2e794c66c0512b67d7cea8b2ba9a</a></div><div></div><div></div><div>[2] <a href="https://github.com/OSGeo/grass/commit/7a0d8d749537acd6d5c4baea11dbb6167fdef916">https://github.com/OSGeo/grass/commit/7a0d8d749537acd6d5c4baea11dbb6167fdef916</a></div><div>[3] <a href="https://trac.osgeo.org/grass/changeset/73268">https://trac.osgeo.org/grass/changeset/73268</a></div><div>[4] <a href="https://github.com/OSGeo/grass/blob/master/lib/segment/format.c">https://github.com/OSGeo/grass/blob/master/lib/segment/format.c</a></div></div>