wangzhengquan
2020-12-24 0fd19aa1c8a2bf543099d6b1077ff19078f9074e
test/test.c
@@ -1,12 +1,10 @@
#include "usg_common.h"
#include "usg_typedef.h"
void test(char *src, int size) {
   char dest[size];
   strncpy(dest, src, size);
   puts(dest);
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";
   test(str, strlen(str));
}