From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <33a9260c412cec3942d2de862f44acd7@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] starting to write native code In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-pxofzklfldqhumtutzzhacgmmd" Date: Tue, 16 Mar 2004 08:28:30 -0500 Topicbox-Message-UUID: 31449786-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-pxofzklfldqhumtutzzhacgmmd Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Given that sizes are fixed, I'ld use Brdline, tokenize, and atof. --upas-pxofzklfldqhumtutzzhacgmmd Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Mar 16 08:25:36 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Mar 16 08:25:32 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id D45A719CD4; Tue, 16 Mar 2004 08:25:23 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 9EE7B19CE9; Tue, 16 Mar 2004 08:25:19 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id B9DE319CE9; Tue, 16 Mar 2004 08:24:03 -0500 (EST) Received: from XMAIL.asuch.cas.cz (clusterb.asuch.cas.cz [147.231.136.17]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 4807C19CCB for <9fans@cse.psu.edu>; Tue, 16 Mar 2004 08:24:02 -0500 (EST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: starting to write native code Thread-Index: AcQLWfBqyrmLs+7iTqaF8SqKNyYA9g== From: To: <9fans@cse.psu.edu> Subject: [9fans] starting to write native code Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 16 Mar 2004 14:23:59 +0100 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on psuvax1.cse.psu.edu X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no version=2.63 X-Spam-Level: hi, all! I'm trying to read-in a matrix of floats, rows separated by newline, columns by blanks: 0.000026 0.000019 0.000003 ... 0.000051 0.000022 0.000059 0.000003 ... 0.000033 0.000024 0.000011 0.000053 ... 0.000021 ... my idea is to use s_read_line() and s_parse(), or am I [completely] wrong? Or is Brdline() and strtok() the way? I usually look how others write code, however, i haven't grepped much of those from /sys/src/cmd... so, if somebody could just push me the right direction. thanks, regards, ++pac. --upas-pxofzklfldqhumtutzzhacgmmd--