Define an object and resources with pointers.
#include <string.h>
#include <stdio.h>
#define HEATER_INSTANCES 1
typedef struct
{
char Manufacturer[64];
} HeaterObject;
static HeaterObject heater[HEATER_INSTANCES];
{
}
{
int instance = 0;
strcpy(heater[instance].Manufacturer, "HotAir Systems Inc");
heater[instance].Temperature = 0.0;
}
int main(void)
{
DefineHeaterObject(awaClient);
SetInitialValues(awaClient);
while (1)
{
}
return 0;
}