Remove already available strcasecmp function
This commit is contained in:
		
							parent
							
								
									f72a68acd9
								
							
						
					
					
						commit
						dbf40dbc53
					
				
					 1 changed files with 0 additions and 19 deletions
				
			
		
							
								
								
									
										19
									
								
								timeoutd.c
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								timeoutd.c
									
										
									
									
									
								
							|  | @ -151,25 +151,6 @@ char path[255];                 /*seppy */ | ||||||
| FILE *proc_file;                /*seppy */ | FILE *proc_file;                /*seppy */ | ||||||
| char comm[16];                  /*seppy; to save the command of a pid */ | char comm[16];                  /*seppy; to save the command of a pid */ | ||||||
| 
 | 
 | ||||||
| #ifdef NEED_STRCASECMP |  | ||||||
| int strcasecmp(char *s1, char *s2) |  | ||||||
| { |  | ||||||
|     while (*s1 && *s2) { |  | ||||||
|         if (tolower(*s1) < tolower(*s2)) |  | ||||||
|             return -1; |  | ||||||
|         else if (tolower(*s1) > tolower(*s2)) |  | ||||||
|             return 1; |  | ||||||
|         s1++; |  | ||||||
|         s2++; |  | ||||||
|     } |  | ||||||
|     if (*s1) |  | ||||||
|         return -1; |  | ||||||
|     if (*s2) |  | ||||||
|         return 1; |  | ||||||
|     return 0; |  | ||||||
| } |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| int main(argc, argv) | int main(argc, argv) | ||||||
| int argc; | int argc; | ||||||
| char *argv[]; | char *argv[]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Petar Kapris
						Petar Kapris