| 327 | } |
| 328 | |
| 329 | static void |
| 330 | sprintfVectorComponent( |
| 331 | Kstring *kstr, |
| 332 | const char *baseName, |
| 333 | unsigned int n, |
| 334 | unsigned int maxn) |
| 335 | { |
| 336 | assert(n < maxn); |
| 337 | if (maxn == 1) { |
| 338 | kstrcpy(kstr, baseName); |
| 339 | } |
| 340 | else { |
| 341 | ksprintf(kstr, "%s.s%c", baseName, vectComponents[n]); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | /* |
| 346 | * sprintf base coordinate and scale it in accordance with |
no test coverage detected