Mohsen Pahlevanzadeh writes:
> void *task1(int *counter)
> {
> while(*counter < 5 ){
> printf("task1 count: %d\n",*counter);
> (*counter)++;
> }//end of while
You are missing a parenthesis here.
> void cleanup(int counter1,int counter2)
> {
> printf("Total iterations: %d\n",counter1+counter2);
> }//end of cleanup function
> But i receive following error:
With the parenthesis mentioned above added compiles fine in Debian
unstable.
HTH,
--
-- Jhair