9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] strtochan
@ 2006-05-28  2:35 erik quanstrom
  2006-05-28  6:43 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: erik quanstrom @ 2006-05-28  2:35 UTC (permalink / raw)
  To: 9fans

i have "b4g4r4" and strtochan returns chan=2364420 but chantodepth(chan) 
returns 0, and chantostr(s, chan) returns nil.

i realize this is a wierd format; is it just not recognized?  how do i tell if
a particular channel format is valid?

- erik


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

* Re: [9fans] strtochan
  2006-05-28  2:35 [9fans] strtochan erik quanstrom
@ 2006-05-28  6:43 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2006-05-28  6:43 UTC (permalink / raw)
  To: 9fans

> i realize this is a wierd format; is it just not recognized?  how do i tell if
> a particular channel format is valid?

it's not valid because the number of bits
neither divides nor is a multiple of 8.
strtochan probably should return 0.

russ



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

end of thread, other threads:[~2006-05-28  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-28  2:35 [9fans] strtochan erik quanstrom
2006-05-28  6:43 ` Russ Cox

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).