上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 这个基础函数,主要见过两种用法: 1.内存初始化 2.考试!!!(鉴于经常考试翻车,立个flag,逢考必对~) memset声明: void * memset ( void * ptr, int value, size_t num ); memset入参: ptr: Pointer to the b 阅读全文
posted @ 2021-06-23 11:41 Lunais 阅读(320) 评论(0) 推荐(0)
摘要: 1 #!/usr/bin/python 2 # -*- coding: UTF-8 -*- 3 4 #python2支持print带入参 5 from __future__ import print_function 6 # python2使用utf-8编码解决中文路径问题 7 from __fut 阅读全文
posted @ 2021-06-21 10:09 Lunais 阅读(220) 评论(0) 推荐(0)
摘要: 1). 查看依赖项:objdump -x xxx.so | grep "NEEDED" 。 2). 查看动态符号表: objdump -T xxx.so 。假如想知道 xxx.so 中是否导出了符号 yyy ,那么命令为 objdump -T xxx.so | grep "yyy" 3). 查看符号 阅读全文
posted @ 2021-06-01 11:05 Lunais 阅读(3515) 评论(0) 推荐(0)
摘要: 1 # -*- coding: utf-8 -*- 2 import os,shutil 3 #设定文件路径 4 path = 'D:\\lunais' 5 6 #对目录下的文件进行遍历 7 for file in os.listdir(path): 8 if os.path.isfile(os.p 阅读全文
posted @ 2021-04-07 15:40 Lunais 阅读(163) 评论(0) 推荐(0)
摘要: <regex.h>不是标准的C语言库函数,目前只能在linux中使用。 相关结构体: /* Type for byte offsets within the string. POSIX mandates this. */ typedef int regoff_t; typedef struct { 阅读全文
posted @ 2021-03-25 14:23 Lunais 阅读(631) 评论(0) 推荐(0)
摘要: sudo kill -9 `ps -ef|grep eclipse|awk '{print $2}'` 阅读全文
posted @ 2021-01-14 15:01 Lunais 阅读(75) 评论(0) 推荐(0)
摘要: 整型提升是C语言的一种规则,由C语言的发明人丹尼斯·里奇与肯·汤普逊创设: "A character, a short integer, or an integer bit-field, all either signed or not, or an object of enumeration ty 阅读全文
posted @ 2021-01-05 17:17 Lunais 阅读(279) 评论(0) 推荐(0)
摘要: re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 函数语法: re.match(pattern, string, flags=0) 函数参数说明: 参数描述 pattern 匹配的正则表达式 string 要匹配 阅读全文
posted @ 2020-10-01 11:21 Lunais 阅读(651) 评论(0) 推荐(0)
摘要: https://man7.org/linux/man-pages/man3/backtrace.3.html 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdint.h> 4 #include <stdlib.h> 5 #inclu 阅读全文
posted @ 2020-09-09 16:28 Lunais 阅读(260) 评论(0) 推荐(0)
摘要: 一.脚本下载 init.sh #!/bin/bash cd code for dir in $(ls) do cd $dir git config --local receive.denycurrentbranch ignore echo $dir cd .. done gitShare.sh #! 阅读全文
posted @ 2020-03-26 21:34 Lunais 阅读(174) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页