From 0fd19aa1c8a2bf543099d6b1077ff19078f9074e Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 24 十二月 2020 11:35:12 +0800
Subject: [PATCH] Merge branch 'dev'
---
test/test.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/test/test.c b/test/test.c
index 0aaa68e..40f5af7 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1,15 +1,10 @@
#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;
+static void sig_quit(int);
+#define SIGCLOSE1 (SIGRTMIN +1)
+int
+main(void)
+{
+ printf("%d, %d , %d\n", SIGRTMIN, SIGRTMAX, SIGCLOSE1);
+ /* SIGQUIT here will terminate with core file */
}
-int main() {
- char *str = "hello";
- int r = test(str, strlen(str));
- printf("%d\n", r);
-}
\ No newline at end of file
+
\ No newline at end of file
--
Gitblit v1.8.0