From owner-freebsd-hackers Mon Nov 9 09:12:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25219 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 09:12:52 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun2.cc.binghamton.edu (bingsun2.cc.binghamton.edu [128.226.1.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA25214 for ; Mon, 9 Nov 1998 09:12:50 -0800 (PST) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun2.cc.binghamton.edu (8.8.7/8.6.9) with SMTP id MAA14742 for ; Mon, 9 Nov 1998 12:12:30 -0500 (EST) Date: Mon, 9 Nov 1998 12:12:29 -0500 (EST) From: zhihuizhang X-Sender: bf20761@bingsun2 To: hackers Subject: radix argument of kvprintf() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I try to figure out the meaning of the argument radix in the routine kvprintf() in file subr_prf.c. I find that radix can be values from 2 through 36 and is only used when you have a %n in the format. The specifier %n is supposed to save the number of characters we have printed so far. But the source code of kvprintf() does not show this. Instead, it specifies we want to print the next argument with base value of radix. This is inconsistent with what is said about printf(3). Can anyone explain this for me? Thanks a lot. -------------------------------------------------- | Zhihui Zhang, http://cs.binghamton.edu/~zzhang | | Dept. of Computer Science, SUNY at Binghamton | -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message