Okay i was reading up on array and pointers, i have a function which requires the following input below and i want to know if im correctly placing the syntax for it :
Code:
#include <cextdecs(PROCESS_GETINFOLIST_)>
short PROCESS_GETINFOLIST_ (short *ret-attr-list ,short ret-attr-count ,short *ret-values-list ,short ret-values-maxlen ,short *ret-values-len )
Code:
short *ret_val_length;
short attr_list[3] ={2,4,22};
short vals_list[20];
short *ret_attr_list = attr_list ;
short *ret_vals_list= vals_list;
short ret_attr_count = 3;
short ret_values_maxlen = 8192;
main()
{
result = PROCESS_GETINFOLIST_ (&ret_attr_list, ret_attr_count, &ret_vals_list, ret_values_maxlen, &ret_val_length);
Also my question is the unary & operator required for &ret_attr_list? if im referencing the entire array?!
Thank you for the help.