Subversion Repositories Kolibri OS

Rev

Rev 1408 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. # strncmp() Author: Kees J. Bot 1 Jan 1994
  2.  
  3. # int strncmp(const char *s1, const char *s2, size_t n)
  4. #     Compare two strings.
  5. #
  6.  
  7. .intel_syntax
  8.  
  9. .globl _strncmp
  10. .globl _strcmp
  11.  
  12. .text
  13.            .align  16
  14. _strncmp:
  15.            mov     ecx, [esp+12]    # Maximum length
  16.            jmp     __strncmp        # Common code
  17.  
  18.  
  19.            .align  16
  20. _strcmp:
  21.            mov     ecx, -1          # Maximum length
  22.            jmp     __strncmp        # Common code
  23.