Changeset 15282 for trunk/FACT++/dim/src/examples/test_client.c
- Timestamp:
- 04/08/13 15:07:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/test_client.c
r14575 r15282 83 83 printf("DNS node = %s\n",node); 84 84 printf("size = %d\n",*size); 85 memcpy(&t, buf, *size);85 memcpy(&t, buf, (size_t)*size); 86 86 printf("t.i = %d, t.d = %2.2f, t.s = %d, t.c = %c, t.f = %2.2f, t.str = %s\n", 87 87 t.i,t.d,t.s,t.c,t.f,t.str); … … 89 89 tsecs = secs; 90 90 my_ctime(&tsecs, str, 128); 91 str[ strlen(str)-1] = '\0';91 str[(int)strlen(str)-1] = '\0'; 92 92 printf("timestamp = %s.%d\n",str,millis); 93 93
Note:
See TracChangeset
for help on using the changeset viewer.