1
0
mirror of https://github.com/fumiama/simple-protobuf.git synced 2026-06-06 08:50:24 +08:00

优化代码结构

This commit is contained in:
源文雨
2022-04-04 15:50:05 +08:00
parent e44349bd47
commit 9e8d9efefe

2
test.c
View File

@@ -33,7 +33,7 @@ int main() {
if(fp) {
SIMPLE_PB* spb = get_pb(fp);
memcpy(&t, spb->target, sizeof(struct TEST));
printf("a:%u\nb:%u\nc:%u\nd:%lu\ne:%s\n", t.a, t.b, t.c, t.d, t.e);
printf("a:%u\nb:%u\nc:%u\nd:%llu\ne:%s\n", t.a, t.b, t.c, t.d, t.e);
printf("Struct size: %u, read: %u\n", spb->struct_len, spb->real_len);
} else perror("[SPB]");
} else perror("[SPB]");