| 3373 | |
| 3374 | |
| 3375 | static int tryCommand( char const * const aCommand ) |
| 3376 | { |
| 3377 | char lBuff [MAX_PATH_OR_CMD] ; |
| 3378 | FILE * lIn ; |
| 3379 | |
| 3380 | lIn = popen( aCommand , "r" ) ; |
| 3381 | if ( fgets( lBuff , sizeof( lBuff ) , lIn ) == NULL ) |
| 3382 | { /* present */ |
| 3383 | pclose( lIn ) ; |
| 3384 | return 1 ; |
| 3385 | } |
| 3386 | else |
| 3387 | { |
| 3388 | pclose( lIn ) ; |
| 3389 | return 0 ; |
| 3390 | } |
| 3391 | |
| 3392 | } |
| 3393 | |
| 3394 | |
| 3395 | static int isTerminalRunning(void) |
no outgoing calls
no test coverage detected