码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果
C 数组下标计算
int main(int argc,char * argv[]) { int arry[] = { 1,2,3 }; //大小下标计算 (int)arry+sizeof(int)*n arry[2] = 30; printf("%x", &arry[2]); printf("%x", (int)ar ...
分类:编程语言   时间:2021-04-20 15:10:21    阅读次数:0
HAL库使用printf
用stm32cubemx配置好串口功能之后,想要使用printf函数进行打印输出的话,还需要自己添加一个重定向函数。 1 #ifdef __GNUC__ 2 /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Smal ...
分类:其他好文   时间:2021-04-20 15:06:54    阅读次数:0
Mac下CoreShell使用lrzsz命令
Mac下Core Shell 使用lrzsz命令,上传,下载文件 新增~/.bashrc_Core_Shell # Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working ...
分类:系统相关   时间:2021-04-20 15:02:28    阅读次数:0
bash特殊变量
bash特殊变量 变量 含义 $0 函数名 \(n | n>=1,表示第一个、第二个、第n个参数、\)(10) $@ 全部参数 $* 全部参数 $# 参数个数 $_ 上一个命令的最后一个参数 $$ 当前shell进程ID $? 上一个命令的返回值 ...
分类:其他好文   时间:2021-04-20 14:55:25    阅读次数:0
配置alias命令永久生效
在/etc/profile.d目录里下新建 shell脚本 (设置alias别名命令的功能) 让新建的别名生效 设置完成后之际可以使用别名 gj 命令 执行poweroff一样效果的 ...
分类:其他好文   时间:2021-04-20 14:33:22    阅读次数:0
LINUX-shell&find 指令
1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:系统相关   时间:2021-04-20 14:31:15    阅读次数:0
十进制转十六进制
代码: #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int ma ...
分类:其他好文   时间:2021-04-20 14:10:46    阅读次数:0
二分法的拓展与应用
#include<cstdio> const double eps = 1e-5; double f(double x) { return x * x; } double calSqrt() { double mid,left=1,right=2; while (right - left > eps ...
分类:其他好文   时间:2021-04-20 14:03:49    阅读次数:0
变长参数传递与两个函数之间
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:其他好文   时间:2021-04-19 15:50:56    阅读次数:0
shell-script - shell 如何获取 nginx 配置文件位置?
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:系统相关   时间:2021-04-19 15:38:16    阅读次数:0
45225条   上一页 1 ... 21 22 23 24 25 ... 4523 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!