wangzhengquan
2020-10-12 575f2e424a17737111786227103a428fb5c20396
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);
}