Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
246 bytes
|
Line | |
---|
1 | #include <stdlib.h>
|
---|
2 | #include <errno.h>
|
---|
3 |
|
---|
4 | int __ptsname_r(int, char *, size_t);
|
---|
5 |
|
---|
6 | char *ptsname(int fd)
|
---|
7 | {
|
---|
8 | static char buf[9 + sizeof(int)*3 + 1];
|
---|
9 | int err = __ptsname_r(fd, buf, sizeof buf);
|
---|
10 | if (err) {
|
---|
11 | errno = err;
|
---|
12 | return 0;
|
---|
13 | }
|
---|
14 | return buf;
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.