Re: Subtle C differences - help to interpret please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Chandler wrote:

cdrom_start_packet_command( ...., &cdrom_seek_intr);
cdrom_start_packet_command(....., cdrom_continuation);

What difference does the subtle '&' make (or the lack of it).

Nothing whatsoever. In C, a function name decays into a pointer to that function in expressions. That is, "func" becomes "&func" automatically. Ommiting it (cdrom_continuation) is the standard.


Rene.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux