本仓库是学习 C语言、数据结构和Linux C 编程过程中的所有练习代码。 所有程序均在 Ubuntu 环境下编译通过。
01_C_basics/- C语言基础练习io_test.c- 输入输出ctrl_test.c- 流程控制array.c- 数组pointer.c- 指针function.c- 函数struct_sty.c- 构造类型memory.c- 动态内存管理Makefile
02_Data_Structure/- 数据结构练习Linked_List/- 链表SLlist.c/.h- 单链表DLlist.c/.h- 双链表llist_test.c- 链表测试Makefile
Stack/- 栈stack.c/.h- 栈实现stack_test.c- 栈测试libmystack.so- 动态库Makefile
Queue/- 队列queue.c/.h- 队列实现queue_test.c- 队列测试libmyqueue.a- 静态库Makefile
Tree/- 二叉树tree.c/.h- 二叉树实现tree_test.c- 二叉树测试Makefile
03_File_IO/- 文件 I/O 练习mycopy.c/.h- 文件复制与统计main.c- 测试入口Makefile
04_Process_Handle/- 进程管理练习process_hde.c/.h- 多进程创建与回收main.c- 测试入口Makefile
05_IPC/- 进程间通信练习pipe_test.c- 匿名管道msg_send.c- POSIX 消息队列发送msg_recv.c- POSIX 消息队列接收shm_test.c- POSIX 共享内存input.txt- 测试文件
06_Thread- 线程练习main.c- 综合练习题目(大注释)与主流程thread.c/h- 生产者线程 + 信号量 + 线程池(并行素数统计)Makefile
- 操作系统:Ubuntu 22.04
- 编译器:GCC
- 编辑工具:VS Code + Remote-SSH
- 版本管理:Git + GitHub
- 笔记整理:Embedded-notes
- 代码练习:LinuxC-practice
- 开发板学习: