Originally Posted By: Yashas
All C books show " *variable = value;" but that dint work.
it should work:
Code:
#include <acknex.h>

void main()
{
	int * int_ptr_to_mem = sys_malloc(sizeof(int));
	*int_ptr_to_mem = 1234; //  >> *variable = value; <<
	
	int output = *int_ptr_to_mem; // printf doesn't work with pointers as value
	printf("int_ptr_to_mem = %.0f", (double)output);
}

...works fine for me confused


POTATO-MAN saves the day! - Random