functionname(void) or functionname(*void)
functionname(void) or functionname(*void)
When writing a function for a thread which one is correct? functionname(void) or functionname(*void)?
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
*VOID is correctly, in my opinion.
Windows SDK:
LPVOID <-- Long pointer
This means it can be used to point to different types of (data-)objects.
But an integer argument is correct, as well. 'Cause integers has the same size than pointers.
Regards
Wolf
Windows SDK:
Code: Select all
DWORD WINAPI ThreadProc(
LPVOID lpParameter
);
This means it can be used to point to different types of (data-)objects.
But an integer argument is correct, as well. 'Cause integers has the same size than pointers.
Regards
Wolf