Subversion Repositories freemyipod

Rev

Rev 113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 248
Line 63... Line 63...
63
_DEFUN (strncmp, (s1, s2, n),
63
_DEFUN (strncmp, (s1, s2, n),
64
        _CONST char *s1 _AND
64
        _CONST char *s1 _AND
65
        _CONST char *s2 _AND
65
        _CONST char *s2 _AND
66
        size_t n)
66
        size_t n)
67
{
67
{
68
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
68
#if defined(PREFER_SIZE_OVER_SPEED)
69
  if (n == 0)
69
  if (n == 0)
70
    return 0;
70
    return 0;
71
 
71
 
72
  while (n-- != 0 && *s1 == *s2)
72
  while (n-- != 0 && *s1 == *s2)
73
    {
73
    {