Re: AW: AW: PostgreSQL pre-7.1 Linux/Alpha Status...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
Cc: "'Thomas Lockhart'" <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: AW: AW: PostgreSQL pre-7.1 Linux/Alpha Status...
Date: 2000-12-21 15:34:58
Message-ID: 16481.977412898@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew Kirkwood 2000-12-21 15:48:46 Re: SSL Connections
Previous Message Tom Lane 2000-12-21 15:24:44 Re: AW: PostgreSQL pre-7.1 Linux/Alpha Status...