From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Ahern To: 9fans@cse.psu.edu Message-ID: <20030505160003.GA27502@wilbur.25thandClement.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Subject: [9fans] fd2path(2) Date: Mon, 5 May 2003 09:00:03 -0700 Topicbox-Message-UUID: 9e1f76f2-eacb-11e9-9e20-41e7f4b1d025 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