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:
343 bytes
|
Line | |
---|
1 | #include <stdio.h>
|
---|
2 | #include <string.h>
|
---|
3 | #include <errno.h>
|
---|
4 | #include "stdio_impl.h"
|
---|
5 |
|
---|
6 | void perror(const char *msg)
|
---|
7 | {
|
---|
8 | FILE *f = stderr;
|
---|
9 | char *errstr = strerror(errno);
|
---|
10 |
|
---|
11 | FLOCK(f);
|
---|
12 |
|
---|
13 | if (msg && *msg) {
|
---|
14 | fwrite(msg, strlen(msg), 1, f);
|
---|
15 | fputc(':', f);
|
---|
16 | fputc(' ', f);
|
---|
17 | }
|
---|
18 | fwrite(errstr, strlen(errstr), 1, f);
|
---|
19 | fputc('\n', f);
|
---|
20 |
|
---|
21 | FUNLOCK(f);
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.