I said:
> If you can see a way around that, we're all ears ...
Of course there's always the brute-force solution:
if (strcmp(ptr, "-9223372036854775808") == 0)
return -9223372036854775808;
else
<<proceed with int8in>>
(modulo some #ifdef hacking to attach the correct L or LL suffix to the
constant, but you get the idea)
This qualifies as pretty durn ugly, but might indeed be more portable
than any other alternative. Comments?
regards, tom lane