Wackojacko wrote: > Mohsen Pahlevanzadeh wrote: >> Jhair Tocancipa Triana wrote: >>> 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, >>> >> I can't understand where i put parenthesis. >> --Mohsen > > Excuse me jumping in, but I think its the 'end of task1 function' that > requires a '}'. > > HTH > > Wackojacko > > It's a copy/paste problem. If i has been compiled it,I received a syntax error. --Mohsen
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]