Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: What's the best non-JVM native language to look at? Date: Sat, 18 Jan 2014 17:21:27 +0000 (UTC) Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <428f8206-d4f7-4fe6-b93c-8f881b498be6@googlegroups.com> <99qdnVXamdWBRErPnZ2dnUVZ8mOdnZ2d@bt.com> <52d9f1e0$0$300$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 18 Jan 2014 17:21:27 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="32188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RX8+s9HPqyeRp6RzB3dmGqCleysTVcG0=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:H+7n9OPrmjhb/YeKpIN+AOc+8jk= Xref: csiph.com comp.lang.java.programmer:27343 On Fri, 17 Jan 2014 22:15:43 -0500, Arne Vajhøj wrote: > On 1/17/2014 9:09 PM, Martin Gregorie wrote: >> On Fri, 17 Jan 2014 15:44:32 -0600, Joshua Cranmer 🐧 wrote: >> >>> In C... I'm not even going to attempt it. >>> >> Its quite simple. Use getline() and strtok() [since POSIX 2008]. > > Strictly speaking that that is not C but C on POSIX platform. > I used the getline() standardisation detail for strtok() as well, which was a mistake. My man pages actually say - strtok() was defined for SVr4, POSIX.1-2001, 4.3BSD, C89, C99 - getline() was defined for POSIX.1-2008 - fgets() was defined for C89, C99, POSIX.1-2001 There's a possibility that the manpage might be incorrect about getline() standardisation because both getline() and strtok() are described in K&R second edition (1988) though only strtok() and fgets() appear in Appendix B: The Standard Library. However, my point still stands provided you replace getline() with fgets(). -- martin@ | Martin Gregorie gregorie. | Essex, UK org |