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:
444 bytes
|
Line | |
---|
1 | #include <string.h>
|
---|
2 | #include <locale.h>
|
---|
3 | #include "locale_impl.h"
|
---|
4 | #include "libc.h"
|
---|
5 |
|
---|
6 | /* collate only by code points */
|
---|
7 | size_t __strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc)
|
---|
8 | {
|
---|
9 | size_t l = strlen(src);
|
---|
10 | if (n > l) strcpy(dest, src);
|
---|
11 | return l;
|
---|
12 | }
|
---|
13 |
|
---|
14 | size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
|
---|
15 | {
|
---|
16 | return __strxfrm_l(dest, src, n, CURRENT_LOCALE);
|
---|
17 | }
|
---|
18 |
|
---|
19 | weak_alias(__strxfrm_l, strxfrm_l);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.