I have written a function that needs to do a 64bit initialisation of memory for an embedded device. Can anyone tell me if this function will carry out this task?
void write64BitValueTo(void* address, U_INT64 pattern)
{
    int i;
    U_INT64 size = (0x20000000 / sizeof(U_INT64));
    //printf("Size = 0x%8X \n",size);
    U_INT64 *ptr = (U_INT64 *) address;
    for(i = 0; i< size; i++)
    {
        *ptr = pattern;
        ptr++;
    }
}
 
     
     
    