| 1155 | */ |
| 1156 | |
| 1157 | static char const * prepare_command_file( string const * command, int slot ) |
| 1158 | { |
| 1159 | FILE * const f = open_command_file( slot ); |
| 1160 | if ( !f ) |
| 1161 | { |
| 1162 | printf( "failed to write command file!\n" ); |
| 1163 | exit( EXITBAD ); |
| 1164 | } |
| 1165 | fputs( command->value, f ); |
| 1166 | fclose( f ); |
| 1167 | return cmdtab[ slot ].command_file->value; |
| 1168 | } |
| 1169 | |
| 1170 | |
| 1171 | /* |
no test coverage detected