Sponsored Content
Full Discussion: C++ to C
Top Forums Programming C++ to C Post 302397321 by Peevish on Sunday 21st of February 2010 08:38:10 PM
Old 02-21-2010
thanks, that solved the problem of uint16, but I'm still not sure how to pass my structure to CRC

e.g.

typedef struct header
{

unsigned short s;
unsigned short d;
unsigned int sq;
unsigned int a;
char hdr;
char rs;
char flg;
unsigned short w;
unsigned short cksum;


} header;


typedef struct Message {
struct header hdr;
char data[1024];
}Message;

=================

I need to pass these parameters and find the total CRC then save it in cksum,
no syntax error for my code but I'm getting a segmentation error!
 
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy