• accessing array of ptr in the structures
    i've declared a structure as typedef struct elem { int a; void *b[20]; }e; how can i access the array of (void) pointer inside a structure??? e.b ??? - is this correct manner of accessing...
  • accessing array of ptr in the structures
    i've declared a structure as typedef struct elem { int a; void *b[20]; }e; how can i access the array of (void) pointer inside a structure??? e.b ??? - is this correct manner of accessing...
  • sbit ptr? (best method for port and bit identification)
    Dear all, My board will have several inputs connected to P0-P3. The PC will instruct the microcontroller using RS232, to monitor some of the inputs. The communication between the PC and the 8051...
  • sbit ptr? (best method for port and bit identification)
    Dear all, My board will have several inputs connected to P0-P3. The PC will instruct the microcontroller using RS232, to monitor some of the inputs. The communication between the PC and the 8051...
  • ascii str (multidigit) or ptr to decimal conversion
    Hello! I'm using following formula to convert string to decimal value: int ptr2dec(char *ptr, unsigned char size) { int val = 0; unsigned char x; for (x = 0; x < (size - 1); x++) { ...