endianness and sscanf/sprintf

From: pramod (spramod_in_at_yahoo.com)
Date: 12/31/03


Date: 31 Dec 2003 01:20:44 -0800

Two different platforms communicate over protocols which consist of
functions and arguments in ascii form. System might be little
endian/big endian.

It is possible to format string using sprintf and retreive it using
sscanf.
Each parameter has a delimiter, data type size is ported to the
platform, and expected argument order is known.

Is this approach portable w.r.t. endianess ?

regards,
Pramod



Relevant Pages

  • Re: endianness and sscanf/sprintf
    ... "pramod" wrote in message ... > functions and arguments in ascii form. ... > endian/big endian. ...
    (comp.lang.c)
  • Re: endianness and sscanf/sprintf
    ... "pramod" wrote in message ... > functions and arguments in ascii form. ... > endian/big endian. ...
    (comp.lang.cpp)
  • endianness and sscanf/sprintf
    ... Two different platforms communicate over protocols which consist of ... functions and arguments in ascii form. ... endian/big endian. ... It is possible to format string using sprintf and retreive it using ...
    (comp.lang.c)