摘要: 1. [修改速度](https://mod.3dmgame.com/mod/169513) 2. [修改装备](https://mod.3dmgame.com/mod/163527) 阅读全文
posted @ 2023-08-23 23:16 诗子黎 阅读(6) 评论(0) 推荐(0) 编辑
摘要: [参考](https://zhuanlan.zhihu.com/p/577586185) echo 命令是日常 linux 任务中使用最广泛的命令之一。echo 命令是一个内置的命令行工具,它将文本或字符串打印到标准输出或将输出重定向到文件。该命令通常在 bash shell 或其他 shell 中 阅读全文
posted @ 2023-08-23 17:51 诗子黎 阅读(548) 评论(0) 推荐(0) 编辑
摘要: [参考](https://blog.csdn.net/m0_56911284/article/details/126831896) 引入问题 int main() { int arr1[10] = { 1,2,3,4,5,6,7,8,9,10 }; my_memcpy(arr1+2, arr1, 2 阅读全文
posted @ 2023-08-23 17:50 诗子黎 阅读(31) 评论(0) 推荐(0) 编辑
摘要: # 功能 由文件描述符获取文件的状态 # 头文件 ```c #include #include ``` # 函数声明 ```c int fstat(int filedes, struct *buf); ``` 两个参数分别为: int filedes: 已经打开的文件描述符,通常由 `open`函数 阅读全文
posted @ 2023-08-23 17:08 诗子黎 阅读(110) 评论(0) 推荐(0) 编辑
摘要: fprintf()用于文件操作 ```c #include int fprintf( FILE *stream, const char *format,... ); ``` fprintf()函数根据指定的format(格式)发送信息(参数)到由stream(流)指定的文件.因此fprintf()可 阅读全文
posted @ 2023-08-23 16:59 诗子黎 阅读(167) 评论(0) 推荐(0) 编辑
摘要: linux open函数 [参考](https://blog.csdn.net/renlonggg/article/details/80701949) ## 一、open函数用来干什么 open函数在Linux下一般用来打开或者创建一个文件,我们可以根据参数来定制我们需要的文件的属性和用户权限等各种参数。 ## 二、open 阅读全文
posted @ 2023-08-23 16:51 诗子黎 阅读(1136) 评论(0) 推荐(0) 编辑