随笔 - 638  文章 - 0 评论 - 168 阅读 - 291万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

02 2014 档案
_kbhit() for linux
摘要:传送门:http://cboard.cprogramming.com/c-programming/63166-kbhit-linux.html#include #include #include #include #include #include int kbhit(void){ struct termios oldt, newt; int ch; int oldf; tcgetattr(STDIN_FILENO, &oldt); newt = oldt; newt.c_lflag &= ~(ICANON | ECHO); tcsetattr(STDIN_FILENO, T. 阅读全文
posted @ 2014-02-20 19:49 瓦楞球 阅读(1779) 评论(0) 推荐(0) 编辑
pthread_create用法(转)
摘要:在转载别人文章之前,说一下pthread_create(); 创建线程返回值。正常情况下,创建成功则返回 0 ;如果创建失败 通常返回常见的错误返回代码为:EAGAIN#define EAGAIN 35 // Resource temporarily unavailable和EINVAL#define EINVAL 22 //Invalid argument---------------------------------------下面是转载文章:linux下用C开发多线程程序,Linux系统下的多线程遵循POSIX线程接口,称为pthread。#include int pt... 阅读全文
posted @ 2014-02-15 18:40 瓦楞球 阅读(49899) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示