Re: AW: AW: PostgreSQL pre-7.1 Linux/Alpha Status... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: AW: AW: PostgreSQL pre-7.1 Linux/Alpha Status...
Date
Msg-id 16481.977412898@sss.pgh.pa.us
Whole thread Raw
In response to AW: AW: PostgreSQL pre-7.1 Linux/Alpha Status...  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
List pgsql-hackers
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at> writes:
> Reading the code, I don't understand it. Why would strtoul return an
> int in the first place ? The name seems to imply an unsigned long
> return type.

What's your point?
unsigned long cvt;
cvt = strtoul(s, &endptr, 10);

The trick is to get from unsigned long to oid (which is unsigned int)
on machines where those are different sizes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: AW: PostgreSQL pre-7.1 Linux/Alpha Status...
Next
From: Matthew Kirkwood
Date:
Subject: Re: SSL Connections