9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] fd2path(2)
@ 2003-05-05 16:00 William Ahern
  2003-05-05 16:18 ` rob pike, esq.
  0 siblings, 1 reply; 6+ messages in thread
From: William Ahern @ 2003-05-05 16:00 UTC (permalink / raw)
  To: 9fans

why not make the return value of fd2path() similar to SUSv3's snprintf()?
that is, return the length of the logical string. i've read a few archived
posts on this. one was to make the return value the remainder of the logical
length and the buffer length. another pointed out that inferno just returned
a malloc'd string on its own.

but, why force superfluous use of strlen()? the semantics of snprintf() seem
quite reasonable. in fact, i can't really figure out a down side... anybody?

- Bill



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

end of thread, other threads:[~2003-05-05 18:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05 16:00 [9fans] fd2path(2) William Ahern
2003-05-05 16:18 ` rob pike, esq.
2003-05-05 17:32   ` William Ahern
2003-05-05 18:05     ` William Josephson
2003-05-05 18:12     ` rsc
2003-05-05 18:17       ` William Ahern

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