• Problem passing nested struct with pointer on the stack
    The following code (part of a simple GUI running on a 251 platform with an LCD) attempts to pass a struct which is a member of another struct on the stack. A pointer to the container struct is dereferenced...
  • Problem passing nested struct with pointer on the stack
    The following code (part of a simple GUI running on a 251 platform with an LCD) attempts to pass a struct which is a member of another struct on the stack. A pointer to the container struct is dereferenced...
  • pointer passing
    I don't know if this is me or the compiler. I have a declaration PSD_SIGNAL_DEF far psd_temp_def = {CS_TEMPERATURE_PSD_ADDRESS,CS_TEMPERATURE_PORT,CS_TEMPERATURE_PIN,0}; and a call psd_temp_def...
  • pointer passing
    I don't know if this is me or the compiler. I have a declaration PSD_SIGNAL_DEF far psd_temp_def = {CS_TEMPERATURE_PSD_ADDRESS,CS_TEMPERATURE_PORT,CS_TEMPERATURE_PIN,0}; and a call psd_temp_def...
  • void pointer to struct pointer cast
    I declared a void pointer void *ptr; and a typedef struct named testStructure, with a member 'unsigned int a'. Now I will cast this pointer to a struct pointer: ptr=(testStructure*)malloc...