tech-userlevel archive

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

Re: pkgsrc RC scripts



On Mon, 19 Oct 2009 03:58:42 +0100
Alistair Crooks <agc%pkgsrc.org@localhost> wrote:

> On Sun, Oct 18, 2009 at 10:54:33PM -0400, Matthew Mondor wrote:
> > while (isspace((int)*value))
> >         value++;
> 
> I'm missing why you would bother casting to (int) in the ctype
> macro arg here.
> 
> Help me out, please?
> 
Perhaps optional, but value is declared as char* and isspace() takes an
int.  (Yes, C will always promote char to int in a procedure call,
which is why I said "perhaps optional".)


                --Steve Bellovin, http://www.cs.columbia.edu/~smb


Home | Main Index | Thread Index | Old Index