Remove old return

This commit is contained in:
Raffaele Mignone 2021-04-06 16:14:21 +02:00
parent f6a092bcd2
commit f6dedcd131
Signed by: norangebit
GPG Key ID: F5255658CB220573
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#define CHUNK 5
int *create_lps(char *pattern, int pattern_len, int *lps) {
int create_lps(char *pattern, int pattern_len, int *lps) {
int last_matched_char = 1;
int last_prefix_char = 0;
@ -23,8 +23,6 @@ int *create_lps(char *pattern, int pattern_len, int *lps) {
last_matched_char++;
}
}
return lps;
}
int *search_pattern(char *text, char *pattern, int *lps, int *match_number, int *residue) {

View File

@ -1,7 +1,7 @@
#ifndef KMP_KMP_H
#define KMP_KMP_H
int *create_lps(char *, int, int *);
int create_lps(char *, int, int *);
int *search_pattern(char *, char *, int *, int *, int *);