From: Robert Raschke <rrplan9@tombob.com>
To: 9fans@cse.psu.edu, rattan@cps.cmich.edu
Subject: Re: [9fans] Question on dial()
Date: Tue, 17 May 2005 16:35:15 +0100 [thread overview]
Message-ID: <beca46ba2fc86ba4675964b0d75d3b83@tombob.com> (raw)
In-Reply-To: <Pine.GSO.4.58.0505171017230.8487@cps3.cps.cmich.edu>
I don't know anything about dial or your problem, but ...
> #include <u.h>
> #include <libc.h>
>
> void
> main(void)
> {
> char ibuf[128], obuf[33]="98765432109876543210987654321098";
>
> int fd, i, len;
>
>
> if((fd = dial("tcp!tigaon!7", 0, 0, 0)) < 0)
> sysfatal("dial");
> for (i = 0; i < 21; i++) {
> obuf[33-i] = 0;
... this does not look good when i == 0.
Did you mean "obuf[32-i] = 0"?
Robby
next prev parent reply other threads:[~2005-05-17 15:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-17 12:53 [9fans] thread, utf Sergey Reva
2005-05-17 13:28 ` [9fans] Question on dial() I RATTAN
2005-05-17 14:04 ` Russ Cox
2005-05-17 14:19 ` I RATTAN
2005-05-17 15:35 ` Robert Raschke [this message]
2005-05-17 16:04 ` Christoph Lohmann
2005-05-17 16:17 ` "Nils O. Selåsdal"
2005-05-17 14:04 ` [9fans] thread, utf Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=beca46ba2fc86ba4675964b0d75d3b83@tombob.com \
--to=rrplan9@tombob.com \
--cc=9fans@cse.psu.edu \
--cc=rattan@cps.cmich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).