logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

用cJSON创建一个json

创建如下结构:{"country":"中国","province":{"name":"台湾","city":["台北", "高雄"]}}demon如下#include <stdio.h>#include "cJSON.h"int creat_json(){char *creat_json = NULL;cJSON *json=NULL;cJSON *province=NULL;cJSO

#json#c语言
cJSON下载使用过程

JSON(JavaScript Object Notation)是一种轻量级的文本数据交换格式,易于让人阅读。在嵌入式应用中因简洁实用性比较高,与web端通信交流时是一种不错的文本解析工具一、下载链接:https://sourceforge.net/projects/cjson/...

#json#c语言
openssl官网-下载安装过程

OpenSSL是一个开放源代码的软件库包,主要来保证安全通信。1.官网下载地址:https://www.openssl.org/source/2.3.安装1–>./config --prefix=/usr/local/openssl2–>make3–>make install4.动态库环境配置1–>vim /etc/ld.so.conf2–>/usr/local/op

#c语言
c语言线程唤醒机制——pthread_cond_wait

一、pthread_cond_wait()唤醒函数讲解1.函数原型讲解头文件#include <pthread.h>函数intpthread_cond_wait(pthread_cond_t*cond,pthread_mutex_t*mutex);函数功能:实现线程的睡眠参数1:条件锁参数2:互斥锁二、程序demon#include <stdio.h>#include &l

#c语言
sqlite数据库删除操作

1.sql语句//清空表格#define EMPTY_STUDENT "DELETE FROM student"//按学号删除---【?号为占位符】#define DELETE_STUDENT_NUMBER "DELETE FROM student WHERE student_number= ?;"2.代码示例/**************************数据库删除数据 author:乐乐

#数据库#sql#mysql +1
c语言线程唤醒机制——pthread_cond_wait

一、pthread_cond_wait()唤醒函数讲解1.函数原型讲解头文件#include <pthread.h>函数intpthread_cond_wait(pthread_cond_t*cond,pthread_mutex_t*mutex);函数功能:实现线程的睡眠参数1:条件锁参数2:互斥锁二、程序demon#include <stdio.h>#include &l

#c语言
mount: mounting /dev/mmcblk0 on /mnt failed: Invalid argument

1.mount 挂载sd卡失败总结挂载名错误,误把节点名当分区挂载正确:mount /dev/mmcblk0p1 /mnt

到底了