mini-equal.red 294 B

12345678910111213141516171819
  1. % MINI-EQUAL.RED
  2. on syslisp;
  3. Procedure EqStr(s1,S2);
  4. Begin scalar n;
  5. s1:=strinf(s1); s2:=strinf(s2);
  6. n:=strlen(s1);
  7. if n neq strlen(s2) then return 'NIL;
  8. L:if n<0 then return 'T;
  9. if strbyt(s1,n) neq strbyt(s2,n) then return 'NIL;
  10. n:=n-1;
  11. goto L;
  12. End;
  13. off syslisp;
  14. end;