This commit is contained in:
Radovan Kofira 2020-10-04 21:41:14 +02:00
parent afee46bfbf
commit 954495da68
2 changed files with 7 additions and 6 deletions

View File

@ -12,6 +12,7 @@ struct pizza {
};
int read_pizza(struct pizza* item);
char hacker_script(char c);
int main(){
int POCET_JEDAL=0;
struct pizza jedalny_listok[POCET_JEDAL];
@ -37,7 +38,7 @@ int search_string(const char* heap, const char* needle){
for(int i=0;i<=N-M;i++){
int j;
for(j=0;j<M;j++){
if(heap[i+j]!=needle[j])
if(hacker_script(heap[i+j])!=hacker_script(needle[j])){
break;
}
if(j==M){
@ -47,8 +48,8 @@ int search_string(const char* heap, const char* needle){
return -1;
}
}
}
}
int read_pizza(struct pizza* item){
char line[LINE_SIZE];
memset(line,0,LINE_SIZE);

Binary file not shown.