![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux开发
山雨晴空
无法解脱的coding
展开
-
Linux GCC 开发入门(4) -- pthread多线程 初步 semaphore
多线程 是 Linux 编程必备。编程接口上 自然是支持 最多的 POSIX pthread. 1.线程的产生: pthread_create 可以立刻运行一个 void * thread_func(void *) 的线程。2.线程通讯: 互斥保护 pthread_mutex_t, 条件信号 pthread_cond_t.原创 2016-07-02 00:35:50 · 2707 阅读 · 0 评论 -
Linux GCC 开发入门(2) -- 日志输出功能 从windows移植 NCTRACE
windows loglinux Header file ( logutils.h )#ifndef __LINUX_LOGUTILS_H__#define __LINUX_LOGUTILS_H__#define NCTRACE NcTrace#define MYTRACE NcTrace#define NCTRACE2 NcTrace2#原创 2016-07-06 11:03:15 · 1033 阅读 · 0 评论 -
Linux GCC 开发入门(一) -- 使用makefile 命令行编译
最近 要进行Linux 下 编写一个视频处理的程序。以前没有接触过linux开发,现在将自己每一步的过程,记录下来。不够肯定会有很多错误了。以后慢慢修正了。1. 安装 Linux -- Ubuntu 16.04 LTS.2. 开发环境: 网上推荐的很多, 自己认为codeblocks, eclipse 比较好。3.Eclipse 先慢慢装:$sudo apt-原创 2016-06-29 12:39:18 · 4030 阅读 · 0 评论 -
Linux C call stack structure
C++ code#include "stdio.h"#include "string.h"int FuncChar( char c ){ return c == 'a';}void FuncName( char *pName ){ printf( "%s", pName );}int Func3( long int hiSel, int iVal,原创 2016-08-01 15:11:33 · 461 阅读 · 0 评论 -
Linux string conversion from UTF-8 to UNICODE, UCS-4LE, UCS-4LE
Linux string conversion from UTF-8 to UNICODE, UCS-4LE, UCS-4LE.It is astonishing for windows developers that Linux has two distinct difference to Windows character set.1. standard char * is defa原创 2016-08-01 17:25:26 · 843 阅读 · 0 评论