![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C language
文章平均质量分 75
vincozhang
专注三网融合之接入网/核心网等技术,音视频信令和媒体传输相关协议
欢迎同行加入IMS/IPPBX/VoIP/SIP QQ交流群: 255404741
关键词
IMS NGN FMC ISC
IPPBX VoIP PSTN IPTV
SIP RTSP SDP RTP/RTCP MSRP
IM Conference MRFC MRFP P-CSCF I-CSCF S-CSCF HSS SLF
openSER/kamailio opensips asterisk freeswitch openIMScore
FHoss Fusionpbx
展开
-
No manual entry for pthread_create
If you want to start programming in Ubuntu, one of the major requirement is to install the man pages. To start pthread programming in Ubuntu原创 2011-07-27 08:41:57 · 3606 阅读 · 0 评论 -
Deep discussion on method of judging a system whether a little endian or big endian
let's directly looking at the code:/* endian.c by vinco at 2011-09-07* for testing the whether system is big endian or little endian*/原创 2011-09-07 14:21:14 · 622 阅读 · 0 评论 -
error: expected specifier-qualifier-list before xxx (a structure )
when I try to define a LIST_NODE structure in a my code,it's alert "error: expected specifier-qualifier-list before LIST_NODE", which foll原创 2011-09-09 16:13:58 · 3586 阅读 · 0 评论 -
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glbvar'
2011-08-16error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glbvar'原创 2011-08-16 11:19:52 · 1135 阅读 · 0 评论 -
about "void" and "void *"
/* void.c by vinco at 2011-09-09* i386-Red Hat-gcc-4.1.2 * http://blog.csdn.net/xuyunzhang/* */#include#includetypedef原创 2011-09-09 14:48:51 · 809 阅读 · 0 评论 -
Deep discussion on the usage of MACRO
see the code directly:/* macro.c by vinco at 2011-09-15* i386-Red Hat-gcc-4.1.2 * http://blog.csdn.net/xuyunzhang/* Copyright:原创 2011-09-15 17:45:23 · 793 阅读 · 0 评论 -
getaddrinfo( ) - getnameinfo( )/ inet_ntop( )
/* addrinfo_ntop.c by vinco at 2012-05-18 * i386-Red Hat-gcc-4.1.2 * http://blog.csdn.net/xuyunzhang/ * Copyright: All Reserved */#include #include #include #include #include #incl原创 2012-05-19 16:33:09 · 1592 阅读 · 0 评论 -
嵌入式编译时 ld: cannot find -lxxx 和 ld:skipping incompatible
编译源代码时报错:/opt/toolchains/uclibc-crosstools-gcc-4.2.3-3/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.3/../../../../mips-linux-uclibc/bin/ld: cannot find -lrvsip原来是radv没有编译,librvsip.a也没有生成。cd原创 2012-06-05 15:43:52 · 9244 阅读 · 0 评论 -
Linux 安全编程(一) 之 SUID 和 SGID
此文参考连接 http://forum.ubuntu.org.cn/weblog_entry.php?e=6900 且加上本人实际验证例子改编而成。由于用户在UNIX下经常会遇到SUID、SGID的概念,而且SUID和SGID涉及到系统安全,所以用户也比较关心这个问题。一、UNIX下关于文件权限的表示方法和解析SUID 是 Set User ID, SGID 是 Set翻译 2012-07-31 15:06:41 · 1912 阅读 · 0 评论 -
线程创建之重要属性PTHREAD_CREATE_DETACHED
#include int pthread_join(pthread_t thread, void **value_ptr);int pthread_detach(pthread_t thread);int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate);int pthread_attr_set原创 2013-04-15 15:52:26 · 20009 阅读 · 0 评论 -
"parameter_hw_name == NULL || parameter_value == NULL" is not equ to "!parameter_hw_name || !parame
"parameter_hw_name == NULL || parameter_value == NULL" is not equ to "!parameter_hw_name || !parameter_value"原创 2011-08-05 22:00:14 · 689 阅读 · 0 评论 -
char * strtrim(char* s ) to remove any space character(such as '\t' , ' ' ...) in a string
here is the functionchar * strtrim(char* s ) it's designed to remove any space character(such as '\t' , ' ' ...) in a string char* s原创 2011-08-05 21:41:23 · 2391 阅读 · 2 评论 -
about the two warning of sprintf()
/* sprint.c write by vinco at 2011-07-29 * */#include#includeconst char * itoa(int i);int main(){ char var[32]; in原创 2011-07-30 11:40:38 · 768 阅读 · 0 评论 -
what's the difference between NULL 0 '\0' and ""/''(space string or char) ?
/* NULL_ZERO.c by vinco at 2011-09-01* what's the difference between NULL 0 '\0' and ""/''(space string or char)*/#include#include#de原创 2011-09-01 14:17:09 · 811 阅读 · 0 评论 -
parse required info from string by strsep()
/* strsep.c by vinco at 2011-08-19* Ubuntu CC/gcc-4.4.1*/#include#include#define PARAM_LENGTH 100char* strtrim(char* s);原创 2011-08-31 16:16:38 · 430 阅读 · 0 评论 -
a weird result when I try to print the value of point by %p format
it's really ridiculous when I try to test my code today I had never known there is a "nil" key word or syntax in C/C++, to make it clear原创 2011-08-03 20:19:00 · 487 阅读 · 0 评论 -
Let function return a correct value you want
/* return.c by vinco at 2011-08-04 Ubuntu9.10 CC/GCC*/#include#include#includeint return_value_0(void);void return_value_1(int j)原创 2011-08-04 15:40:14 · 614 阅读 · 0 评论 -
nerver suppose that a point value is NULL or int value is 0 when defined a variant
when I read some book about C/C++, it's always give a hint that an int variant is assigned to zero automatically . however it doesn't always原创 2011-08-03 19:39:05 · 474 阅读 · 0 评论 -
do not try to modified the value in const region
I run into this troublesome in the morning , I realize how foolish I did suddenly , as you the title says, "do not try to modified the value原创 2011-08-04 13:50:50 · 427 阅读 · 0 评论 -
Be carefull when using string operating function declarated in "string.h"
as we know that原创 2011-08-03 18:44:13 · 693 阅读 · 0 评论 -
about the comma operator and expression
about the comma operator and expression原创 2011-08-03 21:21:58 · 406 阅读 · 0 评论 -
about the escaper character in C programming language
forewords:In the character set can be divided into two categories.There is a class of characters can be displayed as characters, such as原创 2011-09-03 13:33:15 · 748 阅读 · 0 评论 -
老生综合详谈C语言关键字、内存分配、数据存储
进程虚拟地址空间的5个段示意图 进程(执行的程序)会占用一定数量的内存,它或是用来存放从磁盘载入的程序代码,或是存放取自用户输入的数据等等。不过进程对这些内存的管理方式因内存用途 不一而不尽相同,有些内存是事先静态分配和统一回收的,而有些却是按需要动态分配和回收的。对任何一个普通进程来讲,它都会涉及到5种不同的数据段。Linux进程的转载 2013-05-14 16:26:37 · 927 阅读 · 0 评论