Last change
on this file since 388 was 388, checked in by coas-nagasima, 5 years ago |
Azure IoT Hub Device C SDK を使ったサンプルの追加
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
235 bytes
|
Rev | Line | |
---|
[388] | 1 | #include <sys/socket.h>
|
---|
| 2 | #include <netinet/in.h>
|
---|
| 3 | #include <arpa/inet.h>
|
---|
| 4 |
|
---|
| 5 | int __inet_aton(const char *, struct in_addr *);
|
---|
| 6 |
|
---|
| 7 | in_addr_t inet_addr(const char *p)
|
---|
| 8 | {
|
---|
| 9 | struct in_addr a;
|
---|
| 10 | if (!__inet_aton(p, &a)) return -1;
|
---|
| 11 | return a.s_addr;
|
---|
| 12 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.