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)); }