![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
menghaocheng
这个作者很懒,什么都没留下…
展开
-
Linux-根据域名创建Socket
【根据域名创建socket】:#include <sys/socket.h>#include <netinet/tcp.h>#include <stdio.h>#include <arpa/inet.h>#include <sys/select.h>#include <sys/time.h>#include <...原创 2018-03-30 13:07:49 · 3182 阅读 · 3 评论 -
Linux-根据IP创建Socket
根据IP创建Socket#include <sys/socket.h>#include <netinet/tcp.h>#include <stdio.h>#include <arpa/inet.h>#include <sys/select.h>#include <sys/time.h>#include <er...原创 2018-03-30 14:10:31 · 630 阅读 · 0 评论 -
Linux-openssl移植到ARM
【下载】: 先到官网下载源包:https://www.openssl.org/source/【配置】:./config no-asm shared --prefix=/home/mhc/openssl-install --cross-compile-prefix=/home/mhc/Local/arm-none-linux-gnueabi-参数解释:参数描述no-asm禁止使用汇编代码sha...原创 2018-03-27 17:26:43 · 522 阅读 · 0 评论 -
算法-判断是否为搜索二叉树
数据结构:typedef struct node{ struct node *left; struct node *right; int data;}node_type;三目运算 + 递归:boolean is_bst(struct node *root){ return root==NULL?TRUE:(root->left==NULL?(root-&...原创 2018-03-09 14:38:41 · 562 阅读 · 0 评论 -
算法-C快速获取json字段内的数据
【直接撸代码】:(为了凑一点篇幅,特意加了点注释)/***************************************************************************** 函 数 名 : just_json_get 功能描述 : 获取json中指定的字段 输入参数 : char *in_buff char *key ...原创 2018-03-31 14:17:29 · 1677 阅读 · 0 评论 -
__attribute__ 机制详解(一)
GNU C 的一大特色就是__attribute__ 机制。__attribute__ 可以设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。其位置约束为: 放于声明的尾部“;” 之前__attribute__ 书写特征为: __attribute__ 前后都有两个下划线,并切后面会紧...转载 2019-02-15 23:29:20 · 336 阅读 · 0 评论