|
Re: Procedure BYTEORDER [message #10479 is a reply to message #10477] |
Fri, 28 November 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Klaus Scipal (kscipal@fbgeo1.tuwien.ac.at) writes:
> I have a problem with the procedure BYTEORDER in pvwave.
> It does not accept strings.
>
> Is there a way to solve this in an short and easy way
Yes. And I am not trying to be a wise guy here, but don't
pass BYTEORDER strings.
What do you imagine would be the proper thing to do with
a string? What would it mean to swap the byte order of
a string, which is, in essence, a sequence of bytes? You
certainly wouldn't want to *reverse* the string, unless you
planned to read the string in a mirror.
If you look at a routine like SWAP_ENDIAN in IDL, which
*does* accept strings as arguments, you will see that
it simply returns the strings it receives as arguments
without changing a thing. This is exactly as it should
be.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|