From 67e95dfb8e4ffcc6766d0a3b1dd33cf1ecd734f9 Mon Sep 17 00:00:00 2001 From: njl <1012408214@qq.com> Date: Thu, 10 Oct 2024 10:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20fu?= =?UTF-8?q?nction=5Fmodules/noop/noop.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function_modules/noop/noop.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/function_modules/noop/noop.c b/function_modules/noop/noop.c index c6590cb..dfd29b2 100644 --- a/function_modules/noop/noop.c +++ b/function_modules/noop/noop.c @@ -1,18 +1,8 @@ #include -#include -#include "cJSON.h" int main() { - // 返回一个简单的 JSON 对象 - cJSON *root = cJSON_CreateObject(); - cJSON_AddStringToObject(root, "message", "HELLO WORLD!"); - - char *json_string = cJSON_Print(root); - printf("%s", json_string); - printf("{ \"runtim\": \" second\" }\n"); - - // 释放内存 - cJSON_Delete(root); - free(json_string); + + printf("{ \"message\": \" hello world!\" }\n"); + return 0; // 返回 0 表示程序成功 }