Thanks for your help guys.
I wrote out a quick program to test your advise before I attempted to implement it in my program.
Code:
#include <stdio.h>
#include <stdlib.h>
void func1();
int func2(int *array);
int main()
{
func1();
return 0;
}
void func1()
{
int i;
int array[10];
func2(array);
for (i = 0; i < 10; i++)
{
printf("%d\n", array[i]);
}
}
int func2(int *array)
{
int i;
for (i = 0; i < 10; i++)
{
array[i] = i;
}
return *array;
}
this printed out as expected....
Code:
[*** ~/ENEL323]gcc test.c -Wall -o test
[*** ~/ENEL323]./test
0
1
2
3
4
5
6
7
8
9
Thanks again,
-Nick