      int length);
</pre><p>
      </p><p>
       This function copies up to <em class="parameter"><code>length</code></em>-1 characters into
       the buffer and converts the terminating newline into a zero byte.
       <a class="xref" href="libpq-copy.html#LIBPQ-PQGETLINE"><code class="function">PQgetline</code></a> returns <code class="symbol">EOF</code> at the
       end of input, 0 if the entire line has been read, and 1 if the
       buffer is full but the terminating newline has not yet been read.
 