usb-drive.c
static int isExpectedFilename( char *filename ){
  int i = 0;
  int counter = 0;

  for( i = 0; i < 8; i++ ){
    /* strcmp returns 0 if two strings are equal */
    if( !strcmp( filename, expectedFiles[ i ] ) ){
      counter ++;
    }
  }

  return counter;
}
/* isExpectedFilename
 * Checks to see if a given filename is within the list of expected files in
 *  /media.
 *
 * Static function is only available to other functions within this file.
 */
isExpectedFilename
Checks to see if a given filename is within the list of expected files in
/media.

Static function is only available to other functions within this file.
isExpectedFilename Checks to see if a given filename is within the list of expected files in / media . Static function is only available to other functions within this file .
static int isExpectedFilename( char *filename ){
  int i = 0;
  int counter = 0;
  for( i = 0; i < 8; i++ ){
    if( !strcmp( filename, expectedFiles[ i ] ) ){
      counter ++;
    }
  }
  return counter;
}
static int isExpectedFilename ( char * filename ) { int i = 0 ; int counter = 0 ; for ( i = 0 ; i < 8 ; i ++ ) { if ( ! strcmp ( filename , expectedFiles [ i ] ) ) { counter ++ ; } } return counter ; }
isExpectedFilename
 Checks to see if a given filename is within the list of expected files in
  /media.
isExpectedFilename Checks to see if a given filename is within the list of expected files in / media .
/* strcmp returns 0 if two strings are equal */