wangzhengquan
2020-12-23 7590c43344e530e3085e494293959aca9cd7e17b
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));
}