Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / "= { 0 }?" - What does that mean?

Author
Message
Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 16th Jul 2008 20:40
This is probably a very nooby question... I noticed in the WSAOVERLAPPED documentation the line:
Quote: "WSAOVERLAPPED Overlapped = { 0 };"


I've never come across '= {0}' before and I just wondered: what does it mean?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Jul 2008 20:57 Edited at: 16th Jul 2008 21:07
It initialises all bytes in the structure to 0. (To be accurate, it sets the first element to 0, and by default all the other elements get set to 0 too).

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 16th Jul 2008 22:51
Or, if you're using .NET.......

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-09-30 03:23:12
Your offset time is: 2024-09-30 03:23:12