Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
19 lines (18 loc) · 737 Bytes

File metadata and controls

19 lines (18 loc) · 737 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2014 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
#include <netinet/in.h>
extern "C" int puts(const char *);
int main() {
struct in6_addr in6any = IN6ADDR_ANY_INIT;
struct in6_addr in6loopback = IN6ADDR_LOOPBACK_INIT;
int i;
for (i = 0; i < 16; ++i)
if (in6any.s6_addr[i] != in6addr_any.s6_addr[i])
return puts("in6addr_any != IN6ADDR_ANY_INIT\n");
for (i = 0; i < 16; ++i)
if (in6loopback.s6_addr[i] != in6addr_loopback.s6_addr[i])
return puts("in6addr_loopback != IN6ADDR_LOOPBACK_INIT\n");
return puts("pass");
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.