typecasting
- From: aki <akhileshrawat007@xxxxxxxxx>
- Date: 29 Apr 2007 02:16:46 -0700
Hi all,
i am receiving a buffer from network...
there are n number of options in buffer type char*
each option contain thr fields of fixed size.
1)type
2)length
3)value
example->
struct authProt
{
uint8_t type;
uint8_t length;
uint16_t authprot;
};
have created a char array of pointers to point to all these n
options.
char *options[n];
then how to decode each field of an option.
all comments are welcome....
.
- Follow-Ups:
- Re: typecasting
- From: Malcolm McLean
- Re: typecasting
- Prev by Date: Re: gets() is dead
- Next by Date: Re: Info about the GNU C Compiler...? (Then what about linux?)
- Previous by thread: long integer multiplication
- Next by thread: Re: typecasting
- Index(es):
Relevant Pages
|