MCPcopy Create free account
hub / github.com/crossuo/crossuo / tryCommand

Function tryCommand

external/tinyfiledialogs.c:3375–3392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3373
3374
3375static 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
3395static int isTerminalRunning(void)

Callers 3

tkinter2PresentFunction · 0.85
tkinter3PresentFunction · 0.85
pythonDbusPresentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected