test/test.c
@@ -1,12 +1,11 @@ #include "usg_common.h" #include "usg_typedef.h" void test(char *src, int size) { char dest[size]; strncpy(dest, src, size); puts(dest); } int main() { char *str = "hello"; test(str, strlen(str)); char buf[1024]; sprintf(buf, "%s\n", (char*)"" ); printf(buf); int d = strcmp(trim("", 0), ""); printf("%d\n", d); }