Subversion Repositories freemyipod

Rev

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

Rev 16 Rev 19
Line 20... Line 20...
20
//
20
//
21
//
21
//
22
 
22
 
23
 
23
 
24
#include "global.h"
24
#include "global.h"
25
#include <string.h>
-
 
26
#include <limits.h>
-
 
27
 
25
 
28
#ifndef _CONST
-
 
29
#define _CONST const
-
 
30
#endif
-
 
31
 
26
 
32
size_t strlen(_CONST char *str)
27
size_t strlen(const char *str)
33
{
28
{
34
  _CONST char *start = str;
29
  const char *start = str;
35
 
30
 
36
  while (*str)
31
  while (*str) str++;
37
    str++;
-
 
38
 
32
 
39
  return str - start;
33
  return str - start;
40
}
34
}