![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
文章平均质量分 77
henter
这个作者很懒,什么都没留下…
展开
-
OpenSSL 1.1.1 系列中的 SM2 解密缓冲区溢出漏洞 CVE-2021-3711 介绍
OpenSSL 维护者在2021年8月24日发布了安全提示,披露了代号为 CVE-2021-3711 和 CVE-2021-3712 的两个漏洞。其中CVE-2021-3711 的问题来自 SM2 解密缓冲区溢出,该漏洞存在于 OpenSSL 1.1.1 系列中 1.1.1k 及之前的版本,在8月12日由 John Ouyang 报告,现在已经由 Matt Caswell 修复,OpenSSL 维护者建议使用 OpenSSL 1.1.1 系列的用户尽快升级到 1.1.1l (注意l是字母L的小写形式...原创 2021-08-29 21:38:33 · 4439 阅读 · 0 评论 -
C Toolkits for XML
The above table is a PNG file. Right click on the picture, save it to hard disk, open it with an Image Viewer, such as IrfanView or FastStone Image Viewer.原创 2017-03-21 12:38:29 · 584 阅读 · 0 评论 -
Visual Studio中使用C语言创建dll文件同时创建对应lib索引文件的设置方法
本文以Visual Studio 2010为例,介绍在该环境中将一个普通C函数封装成一个dll,同时生成dll对应的lib索引文件的过程。 在VS 2010中启动向导,如下图: 假定项目名为 dll_test,当向导进行到“应用程序设置”这一步,设置的内容如下: 点击“完成”按钮。接下来在解决方案中添加两个文件dll_test.h和dl原创 2018-01-24 17:03:41 · 853 阅读 · 0 评论 -
Some simple file operation functions implemented in C
Function list:1) Get file length; The size of file is arbitrary, even more than 4GB.2) Read file of the middle size into memory; The upper bound of file length is 256MB.3) Compare two files. The ...原创 2017-09-11 20:33:07 · 663 阅读 · 0 评论 -
用C语言获取任意文件的长度(可能大于2GB)
本文给出了用C语言获取文件长度(可能大于2GB)的示例原创 2013-10-31 15:00:16 · 2664 阅读 · 2 评论 -
发现libroxml不能处理XML中的转义字符
介绍了C语言开源XML解析工具libroxml中存在的一个不足。原创 2017-04-01 16:04:17 · 911 阅读 · 0 评论 -
CentOS 6.8下安装和使用CodeBlocks简介
本文简单介绍了在CentOS 6.8下安装和使用Code::Blocks的过程。原创 2017-06-12 14:47:47 · 1162 阅读 · 0 评论 -
在Windows平台上使用GCC编译C程序
本文介绍了在Windows平台上使用MinGW安装GCC,并编译C程序的过程。原创 2017-02-04 15:39:06 · 10947 阅读 · 1 评论 -
在Windows的控制台界面下输出BMPString的内容
本文介绍了在Windows的控制台界面下输出BMPString的内容的方法,特别当BMPString中包含中文字符时,输出结果不会产生乱码。原创 2014-10-30 11:42:55 · 1311 阅读 · 1 评论 -
在Linux的终端中显示BMPString的内容
本文介绍了在Linux的终端中显示BMPString内容的方法,特别是在BMPString中包含中文字符的情况下。原创 2014-10-31 18:16:25 · 1276 阅读 · 0 评论 -
C语言实现的SM2数字签名验证
在 goldboar 写的 SM2 签名及验签函数( http://download.csdn.net/detail/goldboar/3833072)基础上,改写了一个纯粹用于验证SM2签名的函数。原创 2014-07-15 15:31:56 · 12636 阅读 · 6 评论 -
long 类型的字节长度
在64位的Red Hat Linux用 GCC 编译链接并执行下面的程序:#include int main(){ printf("int byte length in 64-bit linux is: %d\n", sizeof(int)); printf("long byte length in 64-bit linux is: %d\n", sizeof(long));原创 2013-07-26 18:17:27 · 11835 阅读 · 0 评论 -
linux 下创建动态链接库的一个很简单的例子
在目录 /usr/local/src/so_lib_test 下面创建三个文件: libtest.h, libtest.c, test_main.clibtest.h 的内容为:/* 这里只声明了一个函数 */int Add(int, int);libtest.c 的内容为:#include "libtest.h"int Add(int a, int b){ ret原创 2013-07-18 14:49:47 · 1115 阅读 · 0 评论