会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
singularity
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
2017年11月13日
安装cmake
摘要: yum -y install gcc automake autoconf libtool make yum serchr gcc-*
阅读全文
posted @ 2017-11-13 17:05 丁培飞
阅读(131)
评论(0)
推荐(0)
2017年11月9日
整型数转字符串
摘要: int iValue;//整型数char sz[10];//字符串sprintf(sz, "%d", iValue);//这句需要头文件#include <stdio.h>/*或者*/itoa(iValue, sz, 10); //这句需要头文件#include <ctype.h>sprintf类似
阅读全文
posted @ 2017-11-09 17:01 丁培飞
阅读(1488)
评论(0)
推荐(0)
2017年11月7日
字符串比较
摘要: if (0==strcmp(DATA_ID_SUB,"01")) { IM_facy_handle_request(message_request,data_len); } else { VOD_handler_request(message_request,data_len); } }
阅读全文
posted @ 2017-11-07 18:14 丁培飞
阅读(192)
评论(0)
推荐(0)
2017年11月6日
wipefs进程
摘要: wipefs进程是啥,占用了百分之90多的cpu wipefs进程是啥,占用了百分之90多的cpu,把这个进程干掉了,过了一天又自动启动了,很多朋友应该遇到过类似的问题。 wipefs是linux自带的程序,用来擦除文件系统数据。正常的wipefs,路径在/usr/bin/wipefs,如果你没有做
阅读全文
posted @ 2017-11-06 13:55 丁培飞
阅读(1812)
评论(0)
推荐(0)
linux clamav杀毒软件的安装
摘要: 一、概述 Linux比其它操作系统更稳定更安全。理论上Linux是有可能被病毒侵害的。但实际上 Linux机器几乎不可能遭受病毒的攻击。所以我这里的问题是为什么要为Linux准备防病毒软件,为了更好理解,我准备了以下理由,Linux平台安装杀毒软件的原因:1、从Linux平台扫描Windows驱动。
阅读全文
posted @ 2017-11-06 13:12 丁培飞
阅读(6150)
评论(0)
推荐(0)
2017年11月4日
返回函数值实例化参数
摘要: .c文件; VOD_REQUEST VODrequest(void){ unsigned char* message_request="12,1234,192.168.9.98,55051"; int data_len=4; int i; printf("++++++++++++++++++++++
阅读全文
posted @ 2017-11-04 19:53 丁培飞
阅读(204)
评论(0)
推荐(0)
linux实现开机自启动脚本
摘要: Linux下(以RedHat为范本)添加开机自启动脚本有两种方法,先来简单的; 一、在/etc/rc.local中添加如果不想将脚本粘来粘去,或创建链接什么的,则:step1. 先修改好脚本,使其所有模块都能在任意目录启动时正常执行;step2. 再在/etc/rc.local的末尾添加一行以绝对路
阅读全文
posted @ 2017-11-04 14:31 丁培飞
阅读(64897)
评论(1)
推荐(2)
2017年11月1日
字符串转换为相应的整型数
摘要: #if 0/*字符串转换为相应的整型数*/int myatoi(const char s[]){ int i,n=0; for (i=0;s[i]>='0'&&s[i]<='9';i++) { n=10*n+(s[i]-'0'); /*(s[i]-'0')能够计算出s[i]中存储的字符所对应的数字值
阅读全文
posted @ 2017-11-01 11:16 丁培飞
阅读(775)
评论(0)
推荐(0)
2017年10月31日
memset函数用法
摘要: 数组: 指针: 1.char *data; 2.memset(&data,0,sizeof(data)); 整型: 1.int data; 2.memset(data, 0, sizeof(data));
阅读全文
posted @ 2017-10-31 16:29 丁培飞
阅读(250)
评论(0)
推荐(0)
指针字符串赋值给数组字符串
摘要: 定义指针字符串:char*v->VOD_REQUEST_ID=“123455” 分配指针字符串地址: char *VOD_SERVER_REQUEST_DATA=(char *)malloc(strlen(v->VOD_REQUEST_ID)+1) ; 复制 ,v->VOD_REQUEST_ID:
阅读全文
posted @ 2017-10-31 09:02 丁培飞
阅读(2158)
评论(0)
推荐(0)
2017年10月30日
以下是关于线性表链接存储(单链表)操作的18种算法
摘要: #include <stdio.h> #include <stdlib.h> #define NN 12 #define MM 20 typedef int elemType ; /***********************************************************
阅读全文
posted @ 2017-10-30 20:49 丁培飞
阅读(419)
评论(0)
推荐(0)
C语言单链表实现19个功能完全详解
摘要: * list.c//#include "stdafx.h"#include "stdio.h"#include <stdlib.h>#include "string.h"typedef int elemType ;/******************************************
阅读全文
posted @ 2017-10-30 19:57 丁培飞
阅读(300)
评论(0)
推荐(0)
Linux系统删掉多个文件
摘要: rm -f 2010-10-*.log
阅读全文
posted @ 2017-10-30 08:09 丁培飞
阅读(196)
评论(0)
推荐(0)
2017年10月25日
C语言中如何计算时间差
摘要: #include <time.h> #include <stdio.h> int main() { time_t start ,end ; double cost; time(&start); sleep(1); time(&end); cost=difftime(end,start); print
阅读全文
posted @ 2017-10-25 22:37 丁培飞
阅读(6436)
评论(0)
推荐(0)
C语言实现字符串IP与整数型IP的相互转换
摘要: [cpp] view plain copy print? #include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> int main(int argc,char *argv[]) { const ch
阅读全文
posted @ 2017-10-25 10:29 丁培飞
阅读(9697)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
公告