Compare commits

..

2 Commits

Author SHA1 Message Date
fd74235421 refresh 2025-09-25 22:09:01 +02:00
0f9b5259b3 refresh 2025-09-25 22:08:50 +02:00
2 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -46,7 +46,7 @@ void deshifr (char *text) {
text[i] = tolower(text[i]);
}
}
s
int search_string (const char* heap_orig, const char* needle_orig) {
char heap[LINESIZE];
char needle[LINESIZE];
@ -58,13 +58,13 @@ int search_string (const char* heap_orig, const char* needle_orig) {
int needle_len = strlen(needle);
for (int i = 0; i <= heap_len - needle_len; i++) {
int j;
for (j = 0; j < needle_len; j++) {
if (heap[i+j] != needle[j]) {
int o;
for (o = 0; o < needle_len; o++) {
if (heap[i+o] != needle[o]) {
break;
}
}
if (j == needle_len) {
if (o == needle_len) {
return i;
}
}