Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/03/10 12:28
Read: times


 
#175614 - 'C' textbook time!
Responding to: ???'s previous message
Akhil Bose said:
i get an an error saying 'Argument' : conversion : pointer to non-pointer (marked with <<).

Are you sure you have marked the correct lines?


void burst_mode_write(unsigned int start_address_1, unsigned char no_of_places_1, (unsigned char)(*p) )<<
{


 

Note that this line is unmanageably long, so let's just rewrite it legibly:

void burst_mode_write( unsigned int start_address_1, 
                       unsigned char no_of_places_1, 
                       (unsigned char)(*p)           ) <<
{
 

Why have you put the paretheses around (unsinged char) and (*p) in that final argument?

That's not the correct way to specify a function argument as a pointer to an unsigned char, is it?


List of 7 messages in thread
TopicAuthorDate
Passing a pointer to a function            01/01/70 00:00      
   'C' textbook time!            01/01/70 00:00      
      Char-red            01/01/70 00:00      
         Typo            01/01/70 00:00      
   Corrected code            01/01/70 00:00      
      'C' textbook time!            01/01/70 00:00      
      Array name is already a pointer.            01/01/70 00:00      

Back to Subject List