OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [sw/] [dev/] [test_main/] [src/] [xil_lib/] [xil_memset.c] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
/*
2
 * tbd
3
 *
4
 */
5
 
6
void *xil_memset(void *s, int c, unsigned int count)
7
{
8
 
9
        if (!count)
10
                return s;
11
 
12
        c &= 0xFF;
13
//
14
                char *xs = (char *) s;
15
 
16
                while (count--)
17
                        *xs++ = c;
18
                return s;
19
//
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.