Pointer To A Function

The function: WORD my_function_name (BYTE a, WORD b); Declaring a pointer to a function: WORD (*p_function)(BYTE a, WORD b); Loading it: p_function = &my_function_name; Calling it: btemp = my_function_name(1, 2); or btemp = (*my_function_name)(1, 2); If your function returns a pointer of some sort then thts fine, just add the extra asterix: WORD *my_function_name (BYTE […]

Read More

Memory Pointers

Write to a specific location in memory (*(unsigned int*)0xffe0004c) = 0; (*(unsigned int*)reg_value) = 0; Calling Function That Wants A Constant Pointer With A Variable Pointer ffs_remove((const char*)filename);

Read More