Subversion Repositories wimsdev

Rev

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

Rev 6382 Rev 7840
Line 1... Line 1...
1
#ifndef basicstr
1
#ifndef basicstr
2
#define basicstr
2
#define basicstr
3
     
3
 
4
/* copy of possibly overlapping strings, to replace strcpy which is not guaranteed in this case
4
/* copy of possibly overlapping strings, to replace strcpy which is not guaranteed in this case
5
   and indeed produces errors particularly on 64 bits computers */
5
   and indeed produces errors particularly on 64 bits computers */
6
 
6
 
7
void ovlstrcpy(char *dest, char *src)
7
void ovlstrcpy(char *dest, char *src)
8
{
8
{
9
  memmove(dest, src, strlen(src)+1);
9
  memmove(dest, src, strlen(src)+1);
10
}
10
}
11
 
11
 
12
     
-
 
13
#endif /* basicstr */
12
#endif /* basicstr */
14
 
-