Subject Re: [ib-support] Core dumps on isc_vax_integer()
Author C R Zamana
Ann W. Harrison wrote:

> At 06:19 PM 10/24/2001 -0200, C R Zamana wrote:
>> I'm getting core dumps when trying to use the function
>>isc_vax_integer(). I'm following exactly what is stated in page
>>343 of the Chapter 6 ( API Guide ).
> There would be less guesswork involved if you sent your code -
> the first parameter is interpreted as a pointer to binary bytes.
> The routine handles big vs. little endianism and alignment.

Thanks Ann, Paul Reeves and Sean Leyne for replies.

I'm using Linux ( RH7.1 ), FireBird 1.0.0-0a.Beta2.

But the problem was solved. The prototype of the referenced
function is isc_vax_integer( char *buffer, short lenght ), where
*buffer is a pointer to the integer to convert.

The example at page 343 is wrong: the value is passed instead
of the pointer to the value.

Thanks anyway.
Best regards.

zamana@... | "Emacs is a nice OS - but it lacks a good text
zamana@... | editor. That's why I'm using Vim. Anonymous |