comp.lang.c
[Top] [All Lists]

Re: printf and cout

Subject: Re: printf and cout
From: David Thompson
Date: Mon, 07 Apr 2008 06:00:51 GMT
Newsgroups: comp.lang.c

On Fri, 28 Mar 2008 07:08:48 -0500, pete <pfiland@xxxxxxxxxxxxxx>
wrote:

> santosh wrote:
>  
> > The %c format expects
> > (and thus treats the corresponding argument as) an unsigned char.
> 
> No standard library functions are described
> as taking an argument lower ranking than int.

Some take implementation-defined types which _could_ be lower.

size_t: *alloc, qsort/bsearch, fread/write, *snprintf/*swprintf,
several mem*/str*/wcs*, etc.

time_t: difftime

(va_list could be smaller than int, but all va_* are not actual
functions; jmp_buf must be an array type)

- formerly david.thompson1 || achar(64) || worldnet.att.net

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy