Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
21b0fa91
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
21b0fa91
编写于
9月 17, 2015
作者:
E
Emilia Kasper
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Document BUF_strnlen
Reviewed-by:
N
Matt Caswell
<
matt@openssl.org
>
上级
58e3457a
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
5 deletion
+7
-5
doc/crypto/buffer.pod
doc/crypto/buffer.pod
+7
-5
未找到文件。
doc/crypto/buffer.pod
浏览文件 @
21b0fa91
...
@@ -32,6 +32,8 @@ standard C library equivalents
...
@@ -32,6 +32,8 @@ standard C library equivalents
size_t BUF_strlcat(char *dst, const char *src, size_t size);
size_t BUF_strlcat(char *dst, const char *src, size_t size);
size_t BUF_strnlen(const char *str, size_t maxlen);
=head1 DESCRIPTION
=head1 DESCRIPTION
The buffer library handles simple character arrays. Buffers are used for
The buffer library handles simple character arrays. Buffers are used for
...
@@ -50,11 +52,11 @@ BUF_MEM_grow() changes the size of an already existing buffer to
...
@@ -50,11 +52,11 @@ BUF_MEM_grow() changes the size of an already existing buffer to
B<len>. Any data already in the buffer is preserved if it increases in
B<len>. Any data already in the buffer is preserved if it increases in
size.
size.
BUF_strdup(), BUF_strndup(), BUF_memdup(), BUF_strlcpy()
and
BUF_strdup(), BUF_strndup(), BUF_memdup(), BUF_strlcpy()
,
BUF_strlcat() a
re equivalents of the standard C library functions. The
BUF_strlcat() a
nd BUF_strnlen are equivalents of the standard C
dup() functions use OPENSSL_malloc() underneath and so should be used
library functions. The dup() functions use OPENSSL_malloc() underneath
in preference to the standard library for memory leak checking or
and so should be used in preference to the standard library for memory
replacing the malloc() function.
leak checking or
replacing the malloc() function.
Memory allocated from these functions should be freed up using the
Memory allocated from these functions should be freed up using the
OPENSSL_free() function.
OPENSSL_free() function.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录