Least significant byte

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Sep 2 20:26:32 CEST 2009


On 02 Sep 2009, at 20:16, Prof A Olowofoyeku (The African Chief) wrote:

> Does anyone know how to return the lest significant byte of a given
> number?
> e.g.
> functionleast_significant_byteof (num: integer): byte;
>
> An algorithm in Pascal or C would be fine.

least_significant_byteof:=num and 255;

(works both on big and little endian systems)


Jonas





More information about the Gpc mailing list