forked from bonsai/harakit
		
	intcmp(1): formatting, lists sysexits imports, allows no args
This commit is contained in:
		
							parent
							
								
									1dfad87e87
								
							
						
					
					
						commit
						d9dd4e6057
					
				@ -21,7 +21,7 @@
 | 
			
		||||
#include <stdio.h> /* fprintf(3), stderr */
 | 
			
		||||
#include <stdlib.h> /* strtol(3), size_t, EXIT_FAILURE */
 | 
			
		||||
#include <unistd.h> /* getopt(3), optind */
 | 
			
		||||
#include <sysexits.h>
 | 
			
		||||
#include <sysexits.h> /* EX_OK, EX_USAGE */
 | 
			
		||||
 | 
			
		||||
/* 0b00? */		/*         Equal                       | -e  | 0b001 | 1 */
 | 
			
		||||
#define EQUAL	0x01	/* Greater                     | -g  | 0b010 | 2 */
 | 
			
		||||
@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
 | 
			
		||||
 | 
			
		||||
	mode = 0;
 | 
			
		||||
 | 
			
		||||
	if(argc < 3) { return usage(argv[0]); }
 | 
			
		||||
	if (argc == 0 | argc < 3) { return usage(argv[0]); }
 | 
			
		||||
 | 
			
		||||
	while ((c = getopt(argc, argv, "egl")) != -1) {
 | 
			
		||||
		switch(c){
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user