Well the second one has a stray comma after 'barcode' that would prevent it from compiling. But assuming that is a typo....
1 2 3 4 5
// this...
if( strcmp( a, b ) < 0 )
// is the same as this:
if( strcmp( b, a ) > 0 )
If the two strings are equal, strcmp will return 0.
If the first string is "less" than the second string (ie: the first mismatching character is less in the first string than the 2nd string), it will return a value less than 0
If the first string is "more" than the second string, it will return a value greater than 0.