At 04:13 PM 5/23/00 +0100, Williams, Ivor wrote:
>I'm trying to use the quad_to_date routine in VMS::Misc.
>
>I want to decode a DEC quadword date read off a file in binary as 8 bytes.
>
>I can verify using the VMS debugger on some C code that the date is valid,
>but quad_to_date seems to be giving me garbage.
>
>Does it expect the 8 bytes as a string scalar? as a reference? Or pulling it
>out via unpack as some flavour of integer?

It expects an 8-byte string. Suck it in from the file as 8 plain bytes and 
pass it to quad_to_date and you should be OK.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to