I'm trying to create a struct at a specific location in memory:
struct inRAM *ptr = (struct inRAM*)malloc(sizeof(struct inRAM));
But this line only allocates the memory at a place in RAM that is not retainable. I need to malloc beginning at a specific memory address for it to work properly, but how?