prog.c: In function ‘bm_match’:
prog.c:15:7: warning: array subscript has type ‘char’ [-Wchar-subscripts]
skip[pat[pt]] = pat_len - pt - 1;
^
prog.c:20:10: warning: implicit declaration of function ‘_print’; did you mean ‘vprintf’? [-Wimplicit-function-declaration]
while (_print(txt, pat, txt_len, pat_len, pt, pp), txt[pt] == pat[pp]) {
^~~~~~
vprintf
prog.c:26:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pt += (skip[txt[pt]] > pat_len - pp) ? skip[txt[pt]] : pat_len - pp;
^
prog.c:26:46: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pt += (skip[txt[pt]] > pat_len - pp) ? skip[txt[pt]] : pat_len - pp;
^
prog.c: In function ‘main’:
prog.c:41:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s1);
^~~~~~~~~~~~~~~
prog.c:44:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s2);
^~~~~~~~~~~~~~~
/usr/bin/ld: /home/GKzH8v/ccsUuk7F.o: in function `bm_match':
prog.c:(.text+0xe6): undefined reference to `_print'
collect2: error: ld returned 1 exit status