home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
206.lha
/
C-Functions
/
strlencmp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-02-14
|
283 b
|
13 lines
#include <exec/types.h>
int strlencmp (s,t,n) /* Stringcompare n letters; NULL if s == t */
UBYTE s[], t[]; /* End at first '\0' ( if found ) */
int n;
{
register int i=0;
while ( (i<n-1) && s[i] == t[i] && s[i] && t[i]) i++;
return( (int)(s[i] - t[i]) );
}