[Coco] question C++

Luis Fernández luis46coco at hotmail.com
Wed Mar 21 22:14:07 EDT 2012


hi, Thanks
but I had understood that address is *val
or am I wrong?
---------------------------------------------------------------------------------
Making 
CoCoDskUtilPack V 1.0.10.zip  
http://cococoding.com/cocodskutil/ Thank Aaron Wolfe
My personal blog: http://www.luis45ccs.blogspot.com
---------------------------------------------------------------------------------

> Date: Thu, 22 Mar 2012 01:30:07 +1100
> From: msmcdoug at iinet.net.au
> To: coco at maltedmedia.com
> Subject: Re: [Coco] question C++
> 
> On 22/03/2012 12:03 AM, Luis Fernández wrote:
> 
> > ANYONE can tell me the meaning&  here
> > write_buf (h, 1,&  val);
> 
> The '&' is the 'address of' operator, so it passes the address of the 'val' 
> variable.
> 
> > static void write_buf_const (dmk_handle h, int count, uint8_t val)
> > {
> >   while (count--)
> >     write_buf (h, 1, &val);
> > }
> 
> This looks like it writes 'count' number of pad bytes of value 'val'.
> 
> Regards,
> 
> -- 
> |              Mark McDougall                | "Electrical Engineers do it
> |  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
 		 	   		  


More information about the Coco mailing list