Extracted from Pike v8.0 release 164 as of 2016-04-05.
   

Method Stdio.Buffer()->read_cstring()


Method read_cstring

string(8bit) read_cstring()

Description

Reads a \0 terminated C-string and returns the string excluding the terminating \0.

If there is not enough data available return UNDEFINED.

Note that pike string can not be longer than 0x7fffffff bytes (~2Gb).