/*-----------------------------------------------------------------------75
** File: strcmp.c
** Last: 15-May-11 08:44:16 AM
** Init: 10-May-11 09:09:46 PM
** Vers: 0r1
** TCPL pg.101
** Compare character strings src & dest: returns negative, zero or
** positive according as src is lexicographically less than, equal to, or
** greater than than dest.  The value returned is obtained by subtracting
** the characters at the first position where src and dest disagree.
*/

/*-----------------------------------------------------------------------75
** 10-May-11 09:09:46 PM - v.0r0, initial.
** 15-May-11 08:44:16 AM - v.0r1, fix typo.
*/

/** return <0 if src < dest, 0 if src == dest, >0 if src > dest **/

strcmp(src,dest) char src[], dest[];
{
	int i;

	i = 0;
	while (src[i] == dest[i])
		if (src[i++] == 0) return (0);
	return (src[i] - dest[i]);
}
/** eo strcmp **/