Remove handrolled strcmp()'s

Favor readability over bare-metal.
This commit is contained in:
FRIGN
2015-05-19 17:44:15 +02:00
committed by sin
parent 1797df01e7
commit 9a074144c9
21 changed files with 31 additions and 21 deletions

3
cmp.c
View File

@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util.h"
@@ -32,7 +33,7 @@ main(int argc, char *argv[])
usage();
for (n = 0; n < 2; n++) {
if (argv[n][0] == '-' && !argv[n][1]) {
if (!strcmp(argv[n], "-")) {
argv[n] = "<stdin>";
fp[n] = stdin;
} else {