From 575f2e424a17737111786227103a428fb5c20396 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 12 十月 2020 18:15:27 +0800
Subject: [PATCH] req_rep

---
 test/test.c |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/test/test.c b/test/test.c
index 0aaa68e..1f7533b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1,15 +1,11 @@
 #include "usg_common.h"
 #include "usg_typedef.h"
-
-int test(char *src, int size) {
-	int i = strlen(src);
-	char dest[size];
-	strncpy(dest, src, size);
-	puts(dest);
-	return i;
-}
+ 
 int main() {
-	char *str = "hello";
-	int r = test(str, strlen(str));
-	printf("%d\n", r);
+
+	char buf[1024];
+	sprintf(buf, "%s\n", (char*)"" );
+	printf(buf);
+	int d = strcmp(trim("", 0), "");
+	printf("%d\n", d);
 }
\ No newline at end of file

--
Gitblit v1.8.0