| 1265 | */ |
| 1266 | |
| 1267 | static char const * prepare_command_file( string const * command, int32_t slot ) |
| 1268 | { |
| 1269 | FILE * const f = open_command_file( slot ); |
| 1270 | if ( !f ) |
| 1271 | { |
| 1272 | err_printf( "failed to write command file!\n" ); |
| 1273 | exit( EXITBAD ); |
| 1274 | } |
| 1275 | fputs( command->value, f ); |
| 1276 | fclose( f ); |
| 1277 | return cmdtab[ slot ].command_file->value; |
| 1278 | } |
| 1279 | |
| 1280 | |
| 1281 | /* |
no test coverage detected