摘要:
#include <stdio.h> #include <openssl/evp.h> main(int argc, char *argv[]) { EVP_MD_CTX mdctx; const EVP_MD *md; char mess1[] = "Test Message/n"; char m 阅读全文
摘要:
#include <stdio.h> typedef int (*function_pointer)(int a, int b); int func(int a, int b, function_pointer test) { test(a, b); } int add(int a, int b) 阅读全文
摘要:
log.c: #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <time.h> #include <unistd.h> #inclu 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define SJXC_LOG_DEBUG(level, format, arg...) SJXC_log_msg_print(level, __FILE__, __func__, __LINE__, format, ##arg) 8 9... 阅读全文
摘要:
1 #include <stdio.h> 2 #include <string.h> 3 4 main() 5 { 6 char *str = "123 abc 456 def 7"; 7 char buf[32]; 8 int j = 0, i = 0; 9 10 memset(buf, '\0', sizeof(buf)); 11 for (i = 0; i < strlen(str); ++ 阅读全文
摘要:
ACK 英文缩写: ACK (ACKnowledge Character) 中文译名: 确认字符 分类: 传输与接入 解释: 在数据通信传输中,接收站发给发送站的一种传输控制字符。它表示确认发来的数据已经接受无误。 NAK是否定应答或者非应答的缩写。它是一个用于数字通信中确认数据受到但是有小错误的信 阅读全文
摘要:
最近虚拟机中安装了redhat6.3企业版,自带的yum用不起来,软件都找不到。 网上搜了一下说是没付钱。。。,需要改下yum源。操作步骤如下: 1.切换到yum源存放目录[root@rhel6 ~]# cd /etc/yum.repos.d/ 2.wget方式下载网易Centos yum源[roo 阅读全文
摘要:
虽然它们都是数据的提交方式,但是在实际传输时确有很大的不同,并且可能会对数据产生严重的影响。虽然为了方便的得到变量值,Web容器已经屏蔽了二者的一些差异,但是了解二者的差异在以后的编程也会很有帮助的。Form中的get和post方法,在数据传输过程中分别对应了HTTP协议中的GET和POST方法。二 阅读全文
摘要:
extundelete 大家基本都知道,在linux上误删除了东西后果是很严重的,尤其是在服务器上误删除了东西,对于字符终端,想要实现恢复删除的数据更是难上加难,对于Linux误删除了重要的东西,虽然我一直嘲笑过这个梗,说使用了以下的命令就会被公司或者学校开除,但是开玩笑的时候压根没想过自己也会有这 阅读全文