摘要: 一、苏格拉底挑战 二、遇见的问题 三、实践+代码 gettimeofday: #include <stdio.h> #include <sys/time.h> int main() { struct timeval current_time; if (gettimeofday(&current_ti 阅读全文
posted @ 2023-11-02 15:07 20211423袁艺 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、苏格拉底挑战 二、遇见的问题 三、实践和代码 代码: #include <stdio.h> #include <pthread.h> // 线程函数,接受一个void*参数,返回一个void*指针 void* thread_function(void* arg) { int thread_arg 阅读全文
posted @ 2023-10-28 22:07 20211423袁艺 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 测试版本: export LD_LIBRATY_PATH='/home/yuanyi/openssl-1.1.1w:$LD_LIBRARY_PATH' ./apps/openssl version 测试代码: echo -n "abc"|./apps/openssl dgst -SM3 ./apps 阅读全文
posted @ 2023-10-20 11:45 20211423袁艺 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一、苏格拉底挑战 二、遇见的问题 三、实践和代码 #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { char *programPath = "/path/to/your/program"; // 指定要执行 阅读全文
posted @ 2023-10-19 21:06 20211423袁艺 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、苏格拉底挑战 二、遇见的困难 三、实践截图和代码 课堂笔记: man 3 printf man -k sort //会找到含有sort功能的命令或函数 man -k sort | grep 3 //缩小查找范围到C语言命令 课本练习: #include <stdio.h> #include <s 阅读全文
posted @ 2023-10-15 18:21 20211423袁艺 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 商用密码产品 一、28类密码产品 商用密码产品认证目录(第一批) 智能密码钥匙 智能IC卡 POS密码应用系统ATM密码应用系统多功能密码应用互联网终端 PCI-E/PCI密码卡 IPsec VPN产品/安全网关 SSL VPN产品/安全网关 安全认证网关 密码键盘 金融数据密码机 服务器密码机 签 阅读全文
posted @ 2023-10-08 21:05 20211423袁艺 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 学习笔记4 一、苏格拉底挑战 二、学习时遇见的问题利用gpt解决 三、实践stat 和opendir-readdir 四、实践代码 使用stat结构体: #include <stdio.h> #include <sys/stat.h> int main() { struct stat fileSta 阅读全文
posted @ 2023-09-30 23:09 20211423袁艺 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 一、苏格拉底挑战 二、使用chatgpt解决问题 三、实践过程 实践代码 hello: hello.o main.o gcc -Iinclude -o bin/hello hello.o mian.o hello.o: gcc -c /home/yuanyi/study/src/hello.c -I 阅读全文
posted @ 2023-09-23 18:13 20211423袁艺 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 静态库测试代码 gcc src/hello.c -c -Iinclude -o bin/hello.o cd bin ar rcsv libhello.a hello.o cd .. mv bin/libhello.a lib gcc src/main.c -Iinclude -Llib -lhel 阅读全文
posted @ 2023-09-17 16:55 20211423袁艺 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 学习所用代码 test.c #include<stdio.h> int main(){ printf("hello"); return 0; } hello.h #ifndef _HELLO_H #define _HELLO_H /** *fuction:print hello string. *p 阅读全文
posted @ 2023-09-09 11:11 20211423袁艺 阅读(6) 评论(0) 推荐(0) 编辑