是否有GNU函数getline接口的替代实现? [英] Are there alternate implementations of GNU getline interface?
问题描述
我目前正在试验采用了复杂的历史来源,也没有明确的许可软件基地。这将是一个大量的工作合理化的东西,在一个固定的许可证释放。
这也是为了运行一个随机unixish平台,只有一些libc中的我们支持有GNU函数getline,但现在的code期望的吧。
有谁知道一个重新实现的 GNU <的code>函数getline 语义下一个限制较少的许可证可用?
编辑:我问,因为谷歌并没有帮助,我想避免写一个,如果可能的(这可能是一个有趣的练习,但它不能物尽其用我的时间。)
要更具体地,所讨论的接口是:
ssize_t供函数getline(字符** lineptr,为size_t * N,FILE *流);
看看保罗谢页面上的用户输入。如果你想知道确切的条款可以通过电子邮件的作者。
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.
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.
Does anyone know of a re-implementation of the GNU getline
semantics that is available under a less restrictive license?
Edit:: 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.)
To be more specific, the interface in question is:
ssize_t getline (char **lineptr, size_t *n, FILE *stream);
Take a look at Paul Hsieh's page on User Input. You can email the author if you want to know the exact terms.
这篇关于是否有GNU函数getline接口的替代实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!