Convert a mixed-case C string to a Capitalized Pascal string */
| 256 | |
| 257 | /* Convert a mixed-case C string to a Capitalized Pascal string */ |
| 258 | static void |
| 259 | ask_restring(const char *cstr, unsigned char *pstr) |
| 260 | { |
| 261 | int i; |
| 262 | |
| 263 | for (i = 0; *cstr && (i < 255); i++) |
| 264 | pstr[i + 1] = *cstr++; |
| 265 | pstr[0] = i; |
| 266 | if ((pstr[1] >= 'a') && (pstr[1] <= 'z')) |
| 267 | pstr[1] += 'A' - 'a'; |
| 268 | return; |
| 269 | } |
| 270 | |
| 271 | /* Enable the dialog item with the given index */ |
| 272 | static void |