Subversion Repositories HelenOS

Rev

Rev 202 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 202 Rev 205
Line 39... Line 39...
39
 * @param src Origin address to copy from.
39
 * @param src Origin address to copy from.
40
 * @param dst Origin address to copy to.
40
 * @param dst Origin address to copy to.
41
 * @param cnt Number of bytes to copy.
41
 * @param cnt Number of bytes to copy.
42
 *
42
 *
43
 */
43
 */
44
char *_memcopy(void * dst, const void *src, size_t cnt)
44
char *_memcpy(void * dst, const void *src, size_t cnt)
45
{
45
{
46
    int i;
46
    int i;
47
   
47
   
48
    for (i=0; i<cnt; i++)
48
    for (i=0; i<cnt; i++)
49
        *((__u8 *) (dst + i)) = *((__u8 *) (src + i));
49
        *((__u8 *) (dst + i)) = *((__u8 *) (src + i));
50
       
50
       
51
    return (char *)src;
51
    return (char *)src;
52
}
52
}
53
 
53
 
54
 
-
 
55
/** Fill block of memory
54
/** Fill block of memory
56
 *
55
 *
57
 * Fill cnt bytes at dst address with the value x.
56
 * Fill cnt bytes at dst address with the value x.
58
 * The filling is done byte-by-byte.
57
 * The filling is done byte-by-byte.
59
 *
58
 *