9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] getfields()
@ 2002-12-06 17:44 presotto
  0 siblings, 0 replies; 2+ messages in thread
From: presotto @ 2002-12-06 17:44 UTC (permalink / raw)
  To: arisawa, 9fans

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

I think its a 'lack of a specification' bug.  I would find it
surprising if I hadn't seen the code and just read the man
page.  If I can't figure out a reasonable way to explain it
in the man page, I'll change the code.

[-- Attachment #2: Type: message/rfc822, Size: 1677 bytes --]

From: Kenji Arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9fans@cse.psu.edu
Subject: [9fans] getfields()
Date: Fri, 6 Dec 2002 23:19:56 +0900
Message-ID: <CBC72412-0925-11D7-86D4-000393A941BC@ar.aichi-u.ac.jp>

Hello,

Is the following is a specification or bug?

#include <u.h>
#include <libc.h>
void main(int argc, char *argv[])
{
	char *args[2];
	char *line;
	line = "##alice###bob###";
	getfields(line, args, 2, 1, "#");
	print("%s,%s\n", args[0], args[1]);
}

The output is:
alice,bob###

Kenji Arisawa

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] getfields()
@ 2002-12-06 14:19 Kenji Arisawa
  0 siblings, 0 replies; 2+ messages in thread
From: Kenji Arisawa @ 2002-12-06 14:19 UTC (permalink / raw)
  To: 9fans

Hello,

Is the following is a specification or bug?

#include <u.h>
#include <libc.h>
void main(int argc, char *argv[])
{
	char *args[2];
	char *line;
	line = "##alice###bob###";
	getfields(line, args, 2, 1, "#");
	print("%s,%s\n", args[0], args[1]);
}

The output is:
alice,bob###

Kenji Arisawa



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-06 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 17:44 [9fans] getfields() presotto
  -- strict thread matches above, loose matches on Subject: below --
2002-12-06 14:19 Kenji Arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).