* builtins.def: Break out _Complex math functions into their
[official-gcc.git] / libf2c / libF77 / h_indx.c
blob2353b2b143aba5f1991d565e9b781a4c00c2d79c
1 #include "f2c.h"
3 shortint
4 h_indx (char *a, char *b, ftnlen la, ftnlen lb)
6 ftnlen i, n;
7 char *s, *t, *bend;
9 n = la - lb + 1;
10 bend = b + lb;
12 for (i = 0; i < n; ++i)
14 s = a + i;
15 t = b;
16 while (t < bend)
17 if (*s++ != *t++)
18 goto no;
19 return ((shortint) i + 1);
20 no:;
22 return (0);