Operating Systems/OS_Assg2_pipes-main/myexpos/xsm/disk.c
int disk_write_page(xsm_word *page, int block_num)
{
    xsm_word *block = disk_get_block(block_num);
    memcpy(block, page, XSM_PAGE_SIZE * XSM_WORD_SIZE);
    return TRUE;
}
/* Writes page to the given block */
Writes page to the given block
Writes page to the given block
int disk_write_page(xsm_word *page, int block_num)
{
    xsm_word *block = disk_get_block(block_num);
    memcpy(block, page, XSM_PAGE_SIZE * XSM_WORD_SIZE);
    return TRUE;
}
int disk_write_page ( xsm_word * page , int block_num ) { xsm_word * block = disk_get_block ( block_num ) ; memcpy ( block , page , XSM_PAGE_SIZE * XSM_WORD_SIZE ) ; return TRUE ; }
Writes page to the given block
Writes page to the given block