hello all, i have a c question.
This is in regards to passing a multi dimensional array through to another routine.
i have defined in one routine, a multi 2-dimensional array:
byte sitecode_rules[10][15];
and i am using it as so:
if( check_code_rules( sitecode_rules, scan_delivery, s_count ) )
compiler gives me a suspicious pointer conversion on that line.
the check_code_rules routine looks something like this:
byte check_code_rules( byte *rule[], byte *scan, int number_of_rules )
{
...
}
I am working on an embedded platform and the rule[] array data is somehow getting corrupt within the check_code_rules routine.
I know this because i output the data within the array on the lcd.
The data is ok however, within the higher routine which calls check_code_rules.
I have tried
if( check_code_rules( &sitecode_rules[0], scan_delivery, s_count ) )
and even,
if( check_code_rules( &sitecode_rules[0][0], scan_delivery, s_count ) )
data is still corrupt.
What am I doing wrong?
(calling all c gurus)