Changeset 60:b87f8bb9944c in xplra for test/basicctest.c
- Timestamp:
- 04/04/13 15:56:27 (11 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basicctest.c
r55 r60 157 157 "sim/aircraft/view/acf_descrip"); 158 158 if (length<0) goto error; 159 printf("Got % zu bytes, as a string: '%s'\n\n",length, result);159 printf("Got %lu bytes, as a string: '%s'\n\n", (unsigned long)length, result); 160 160 161 161 printf("Querying the aircraft's description as a dynamically created array with an offset of 3...\n"); … … 164 164 "sim/aircraft/view/acf_descrip"); 165 165 if (result1==0) goto error; 166 printf("Got % zu bytes, as a string: '%s'\n\n",length1, result1);166 printf("Got %lu bytes, as a string: '%s'\n\n", (unsigned long)length1, result1); 167 167 168 168 printf("Querying the aircraft's engine types as an array of a fixed size...\n"); … … 171 171 172 172 if (length<0) goto error; 173 printf("Got % zd values:",length);173 printf("Got %ld values:", (long)length); 174 174 for(i = 0; i<length; ++i) { 175 175 if (i>0) printf(","); … … 182 182 result4 = xplra_get_int_array_new(&length1, 0, connectionID, 183 183 "sim/aircraft/prop/acf_en_type"); 184 printf("Got % zu values:",length1);184 printf("Got %lu values:", (unsigned long)length1); 185 185 for(j = 0; j<length1; ++j) { 186 186 if (j>0) printf(","); … … 193 193 0, connectionID, 194 194 "sim/aircraft/prop/acf_prop_dir"); 195 printf("Got % zd values:",length);195 printf("Got %ld values:", (long)length); 196 196 for(i = 0; i<length; ++i) { 197 197 if (i>0) printf(","); … … 204 204 result6 = xplra_get_float_array_new(&length1, 0, connectionID, 205 205 "sim/aircraft/prop/acf_prop_dir"); 206 printf("Got % zu values:",length1);206 printf("Got %lu values:", (unsigned long)length1); 207 207 for(j = 0; j<length1; ++j) { 208 208 if (j>0) printf(",");
Note:
See TracChangeset
for help on using the changeset viewer.