Remove old return
This commit is contained in:
parent
f6a092bcd2
commit
f6dedcd131
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#define CHUNK 5
|
#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_matched_char = 1;
|
||||||
int last_prefix_char = 0;
|
int last_prefix_char = 0;
|
||||||
|
|
||||||
@ -23,8 +23,6 @@ int *create_lps(char *pattern, int pattern_len, int *lps) {
|
|||||||
last_matched_char++;
|
last_matched_char++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int *search_pattern(char *text, char *pattern, int *lps, int *match_number, int *residue) {
|
int *search_pattern(char *text, char *pattern, int *lps, int *match_number, int *residue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user