> What is the definition of strmov in C?  It seems to be a 
> MYSQL library sprecific function in m_string.h and is used
> in some of the documentations examples.

In MySQL 3.23.x, it's defined in strings/strmov.c

#if !defined(MC68000) && !defined(DS90)

char *strmov(register char *dst, register const char *src)
{
  while ((*dst++ = *src++)) ;
  return dst-1;
}

#else

char *strmov(dst, src)
     char *dst, *src;
{
  asm("         movl    4(a7),a1        ");
  asm("         movl    8(a7),a0        ");
  asm(".L4:     movb    (a0)+,(a1)+     ");
  asm("         jne     .L4             ");
  asm("         movl    a1,d0           ");
  asm("         subql   #1,d0           ");
}

#endif


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to