title: Are there alternate implementations of GNU getline interface?
body: <p>The experiment I am currently working uses a software base with a complicated source history and no well defined license. It would be a considerable amount of work to rationalize things and release under a fixed license.</p>
  
  <p>It is also intended to run a a random unixish platform, and only some of the libc's we support have GNU getline, but right now the code expects it.</p>
  
  <p>Does anyone know of a re-implementation of the <a href="http://www.gnu.org/software/hello/manual/libc/Line-Input.html" rel="noreferrer">GNU <code>getline</code></a> semantics that is available under a less restrictive license?</p>
  
  <p><strong>Edit::</strong> I ask because Google didn't help, and I'd like to avoid writing one if possible (it might be a fun exercise, but it can't be the best use of my time.)</p>
  
  <p>To be more specific, the interface in question is:</p>
  
  <pre><code>ssize_t getline (char **lineptr, size_t *n, FILE *stream);
  </code></pre>