wangzhengquan
2020-10-14 09fdbecd7ce09d9988adcd079e886a21941666bf
test/test.c
@@ -1,12 +1,13 @@
#include "usg_common.h"
#include "usg_typedef.h"
void test(char *src, int size) {
   char dest[size];
   strncpy(dest, src, size);
   puts(dest);
int  test() {
   static int count = 0;
   count++;
   return count;
}
int main() {
   char *str = "hello";
   test(str, strlen(str));
   printf("%d\n", test());
   printf("%d\n", test());
}