Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
e68a4633
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
大约 1 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e68a4633
编写于
3月 26, 2012
作者:
N
nsz
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.etalabs.net/musl
上级
c5ec5b2c
a9014ac1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
10 deletion
+32
-10
COPYRIGHT
COPYRIGHT
+4
-4
README
README
+1
-3
src/locale/strfmon.c
src/locale/strfmon.c
+27
-3
未找到文件。
COPYRIGHT
浏览文件 @
e68a4633
...
...
@@ -4,10 +4,10 @@ See the file COPYING for the text of this license.
See below for the copyright status on all code included in musl:
The TRE regular expression implementation (src/regex/reg* and
src/regex/tre*) is Copyright © 2001-200
6
Ville Laurikari and licensed
under
the terms of the GNU LGPL version 2.1 or later. The included
version was heavily modified in Spring 2006 by Rich Felker in the
interests of size, simplicity, and namespace cleanliness.
src/regex/tre*) is Copyright © 2001-200
8
Ville Laurikari and licensed
under
a 2-clause BSD license (license text in the source files). The
included version has been heavily modified by Rich Felker in 2012, in
the
interests of size, simplicity, and namespace cleanliness.
Most of the math library code (src/math/* and src/complex/*) is
Copyright © 1993,2004 Sun Microsystems or
...
...
README
浏览文件 @
e68a4633
...
...
@@ -26,9 +26,7 @@ intended to be stable at this point, and serious efforts have been
made, using three separate test frameworks, to verify the correctness
of the implementation. Many major system-level and user-level programs
are known to work with musl, either out-of-the-box or with minor
patches to address portability errors; the main remaining applications
which definitely will not work are those which require C++ support,
which will be addressed during the 0.8 or 0.9 development series.
patches to address portability errors.
Included with this package is a gcc wrapper script (musl-gcc) which
allows you to build musl-linked programs using an existing gcc 4.x
...
...
src/locale/strfmon.c
浏览文件 @
e68a4633
...
...
@@ -3,16 +3,15 @@
#include <stdarg.h>
#include <monetary.h>
#include <errno.h>
#include <stdarg.h>
s
size_t
strfmon
(
char
*
s
,
size_t
n
,
const
char
*
fmt
,
...
)
s
tatic
ssize_t
vstrfmon_l
(
char
*
s
,
size_t
n
,
locale_t
loc
,
const
char
*
fmt
,
va_list
ap
)
{
size_t
l
;
double
x
;
int
fill
,
nogrp
,
negpar
,
nosym
,
left
,
intl
;
int
lp
,
rp
,
w
,
fw
;
char
*
s0
=
s
;
va_list
ap
;
va_start
(
ap
,
fmt
);
for
(;
n
&&
*
fmt
;
)
{
if
(
*
fmt
!=
'%'
)
{
literal:
...
...
@@ -75,3 +74,28 @@ ssize_t strfmon(char *s, size_t n, const char *fmt, ...)
}
return
s
-
s0
;
}
ssize_t
strfmon_l
(
char
*
s
,
size_t
n
,
locale_t
loc
,
const
char
*
fmt
,
...)
{
va_list
ap
;
ssize_t
ret
;
va_start
(
ap
,
fmt
);
ret
=
vstrfmon_l
(
s
,
n
,
loc
,
fmt
,
ap
);
va_end
(
ap
);
return
ret
;
}
ssize_t
strfmon
(
char
*
s
,
size_t
n
,
const
char
*
fmt
,
...)
{
va_list
ap
;
ssize_t
ret
;
va_start
(
ap
,
fmt
);
ret
=
vstrfmon_l
(
s
,
n
,
0
,
fmt
,
ap
);
va_end
(
ap
);
return
ret
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录