endianness and sscanf/sprintf
From: pramod (spramod_in_at_yahoo.com)
Date: 12/31/03
- Next message: Wen: "Re: while can't go to the 2nd record."
- Previous message: Forecast: "Help!! About MySQL and VC6"
- Next in thread: John Carson: "Re: endianness and sscanf/sprintf"
- Reply: John Carson: "Re: endianness and sscanf/sprintf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Wen: "Re: while can't go to the 2nd record."
- Previous message: Forecast: "Help!! About MySQL and VC6"
- Next in thread: John Carson: "Re: endianness and sscanf/sprintf"
- Reply: John Carson: "Re: endianness and sscanf/sprintf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|