C
鱼与羽
我就是一个技术宅....
展开
-
比较全面的CRC检验代码 C语言(转自网上)
#include <stdio.h>#include <stdlib.h>#include <string.h>/****************************Info********************************************** * Name: InvertUint8 * Note: 把字节颠倒过来,如0x12变成0x48 0x12: 0001 0010 0x48: 0100 1000 **.转载 2021-09-09 16:46:16 · 2186 阅读 · 1 评论 -
搭建自己的git服务器、配置公钥私钥(解决每次 clone push需要密码问题)
前提条件:需要自己的服务器(废话唠叨一下- -!)服务器的系统:CentOS7,不会ssh远程登录服务器的出门左拐百度一下咯服务器端第一步:安装gityum install -y git安装完成后第二步:添加git使用的用户和密码useradd git #git 为你的用户名 不喜欢可以自己定义一个,但是定义后,下面的git都必须改为你对应的用户名!pa...原创 2019-12-21 00:13:54 · 1998 阅读 · 0 评论 -
利用共同体实现char和bool之间转换
//--------------------------------------------联合体(共用体) 定义typedef union{ //使用位域 struct { bool b0 : 1; bool b1 : 1; bool b2 : 1; bool b3 : 1; bo...原创 2019-09-19 20:12:39 · 1285 阅读 · 0 评论