#include "f2c.h"Include dependency graph for ef1cmc_.c:

Go to the source code of this file.
Functions | |
| integer | s_cmp (char *, char *, ftnlen, ftnlen) |
| integer | ef1cmc_ (ftnint *a, ftnlen *la, ftnint *b, ftnlen *lb) |
Definition at line 11 of file s_cmp.c.
Referenced by ef1cmc_(), hl_ge(), hl_gt(), hl_le(), hl_lt(), l_ge(), l_gt(), l_le(), and l_lt().
00013 { 00014 register unsigned char *a, *aend, *b, *bend; 00015 a = (unsigned char *)a0; 00016 b = (unsigned char *)b0; 00017 aend = a + la; 00018 bend = b + lb; 00019 00020 if(la <= lb) 00021 { 00022 while(a < aend) 00023 if(*a != *b) 00024 return( *a - *b ); 00025 else 00026 { ++a; ++b; } 00027 00028 while(b < bend) 00029 if(*b != ' ') 00030 return( ' ' - *b ); 00031 else ++b; 00032 } 00033 00034 else 00035 { 00036 while(b < bend) 00037 if(*a == *b) 00038 { ++a; ++b; } 00039 else 00040 return( *a - *b ); 00041 while(a < aend) 00042 if(*a != ' ') 00043 return(*a - ' '); 00044 else ++a; 00045 } 00046 return(0); 00047 }
Here is the caller graph for this function:

1.5.1