Need help with "C" errors
    Peter Moore 
    peter at objy.objy.com
       
    Thu Oct  4 09:49:30 AEST 1990
    
    
  
<< The original author was having trouble with a parameter that was declared
   void * >>
   I have found that under Ultrix 3.x, the C compiler does not properly handle
   void * parameters.  The code:
   foo(a)
   void *a;
   {
       *(int *) = 5;
   }
   will give error messages about `a' being undefined.  It looks like
   it recognizes void only sort of as a type.  It accepts the
   declaration, but doesn't actually define a variable.  There is an
   easy workaround, use char * instead of void *.
	Peter Moore
	peter at objy.com
    
    
More information about the Comp.unix.ultrix
mailing list