摘要: static void reverseStr(char *s, unsigned int len) { int low = 0; int high = len - 1; for (unsigned int idx = 0; idx < len / 2; ++idx) { s[idx] = s[idx 阅读全文
posted @ 2023-02-23 14:30 Yavn 阅读(61) 评论(0) 推荐(0)
摘要: 一篇文章带你深入了解Mbed TLS是啥-电子发烧友网 (elecfans.com) mbedTLS简介_心永向阳的博客-CSDN博客_mbedtls mbedtls_joneming的博客-CSDN博客 阅读全文
posted @ 2023-01-08 22:17 Yavn 阅读(81) 评论(0) 推荐(0)
摘要: C程序中对时间的处理——time库函数详解 | 时间 (lmlphp.com) 阅读全文
posted @ 2022-12-26 17:26 Yavn 阅读(30) 评论(0) 推荐(0)
摘要: /* Host and service name lookups using Name Service Switch modules. Copyright (C) 1996-2022 Free Software Foundation, Inc. This file is part of the GN 阅读全文
posted @ 2022-10-29 21:51 Yavn 阅读(119) 评论(0) 推荐(0)
摘要: function IsSuffix() { filename=$1 fileSuffix=${filename##*.} if [ ${fileSuffix} != "zip" ]; then echo -e "\033[36mSecond parameter error, must be xxx. 阅读全文
posted @ 2022-09-12 15:36 Yavn 阅读(660) 评论(0) 推荐(0)
摘要: #include <stdio.h> //数组中只有一个数字出现奇数次,找到它//方法是直接异或数组全部成员int FindOnlyOneNumOddTimes(const int *arr, unsigned int size){ int res = 0; for (unsigned int co 阅读全文
posted @ 2022-04-05 22:55 Yavn 阅读(97) 评论(0) 推荐(0)
摘要: 0. 头文件 #include <pthread.h> 1. 初始化 int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); 简单的使用可以使用默认的属性初始 阅读全文
posted @ 2021-12-18 10:43 Yavn 阅读(274) 评论(0) 推荐(0)
摘要: 1、用strtok函数进行字符串分割 原型: char *strtok(char *str, const char *delim); 功能:分解字符串为一组字符串。 参数说明:str为要分解的字符串,delim为分隔符字符串。 返回值:从str开头开始的一个个被分割的串。当没有被分割的串时则返回NU 阅读全文
posted @ 2021-09-05 20:22 Yavn 阅读(735) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> using namespace std; int main() { string str; str = "123456"; cout << str << endl; //方法一:使用substr() str = str.subs 阅读全文
posted @ 2021-09-05 20:13 Yavn 阅读(5085) 评论(0) 推荐(0)