From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v548) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Kenji Arisawa To: 9fans@cse.psu.edu Content-Transfer-Encoding: 7bit Message-Id: Subject: [9fans] getfields() Date: Fri, 6 Dec 2002 23:19:56 +0900 Topicbox-Message-UUID: 2f51feb6-eacb-11e9-9e20-41e7f4b1d025 Hello, Is the following is a specification or bug? #include #include 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