lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Tue, Jul 21, 2015 at 11:33 PM, Dirk Laurie <> wrote:
> BTW does anybody know if C makes any distinction between
> %d and %i? "man 3 printf" in Linux does not show any.

There's no difference for printf, but for scanf %d always interprets
the number as decimal while %i allows octal and hexadecimal,
distinguished by prefix.

/s/ Adam