am developing a exe for dos based machine(Hand Held Unit) which retrieves data from micro-controller based device.
Type: Posts; User: supi
am developing a exe for dos based machine(Hand Held Unit) which retrieves data from micro-controller based device.
One more query on allocating and deleting
when i used malloc to allocate space for huge pointer
typedef struct FileHdr
{
unsigned long reg;
unsigned short width;
unsigned char typ;
what if when calloc() was used to allocate
thank you
For eg: when a list is created using linked list with head holding the first pointer to the structure and followed by the next pointers to the structure.
head->elemt1->elemt2->elemt3
after...
I changed the below array
#define ETX 3
unsigned char RecBuffer[2048];
to
Hai,
My serial interrupt routine collects all the data from the serial buffer (Controller) successfully, the data sent from the controller never exceed more than 2000 bytes.
The problem is when...
hai,
I suspect something wrong
i have 32 bit data, its float in hex
if i have 0x00000000 data then it corresponding float value is 0.0 for this i tried like this
unsigned char...
How silly i was :D!!!!!! Thanks iMalc for rightly pointing it out......
problem got fixed!!
hi,
i have a problem in storing the data in allocated memory using malloc.
i have structure to store huge data form the serial port.
typedef struct FileData {
unsigned char *FRdata;...
thanks
hi,
i know we can vary the no. of records in the list but can we vary the record size itself.
eg
typedef struct {
int data;