c语言
run404
这个作者很懒,什么都没留下…
展开
-
链表快速排序
链表快速排序原创 2022-10-22 17:58:18 · 582 阅读 · 0 评论 -
linux C语言根据进程名获取PID
目录Shell命令C语言(popen) Shell命令 ps -e | grep 'test' | grep -v grep | awk 'print $1' ps -e : 查看所有进程 grep ‘test’ : 检索包含test的进程 grep -v grep : 去掉grep awk ‘print $1’ : 打印第一列内容 C语言(popen) int main() { FILE *fs=NULL; char buf[1024]; int i = 0; mems原创 2022-02-15 11:11:33 · 1269 阅读 · 0 评论 -
__attribute__((constructor))
The constructor attribute causes the function to be called automatically before execution enters main (). Similarly, the destructor attribute causes the function to be called automatically after main () completes or exit () is called. Functions with th...转载 2022-01-28 17:36:55 · 92 阅读 · 0 评论