boaaa
This commit is contained in:
		
							parent
							
								
									2c72ff9c41
								
							
						
					
					
						commit
						a631cc7d3f
					
				@ -61,22 +61,21 @@ void trim(char* str){
 | 
			
		||||
int search_string(const char* heap, const char* needle){
 | 
			
		||||
    int M=strlen(needle);
 | 
			
		||||
    int N=strlen(heap);
 | 
			
		||||
    //printf("needle:%d heap: %d\n",M,N);
 | 
			
		||||
    for(int i=0;i<=N-M;i++){
 | 
			
		||||
        int j;
 | 
			
		||||
        for(j=0;j<M;j++){
 | 
			
		||||
        //printf("heap:%c\n",hacker_script(heap[i+j]));
 | 
			
		||||
        //printf("needle:%c\n",hacker_script(needle[j]));
 | 
			
		||||
            //printf("heap:%c\n",hacker_script(heap[i+j]));
 | 
			
		||||
            //printf("needle:%c\n",hacker_script(needle[j]));
 | 
			
		||||
            if(hacker_script(heap[i+j])!=hacker_script(needle[j])){
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
            if(j==M){
 | 
			
		||||
                return i;
 | 
			
		||||
            }
 | 
			
		||||
            else{
 | 
			
		||||
                return -1;
 | 
			
		||||
            }
 | 
			
		||||
        if(j==M){
 | 
			
		||||
            return i;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return -1;
 | 
			
		||||
}
 | 
			
		||||
int read_pizza(struct pizza* item){
 | 
			
		||||
    char line[LINE_SIZE];
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								cv1/program.exe
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								cv1/program.exe
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user