Update README.md

This commit is contained in:
Sherman Perry
2018-08-14 11:51:27 +12:00
committed by GitHub
parent a31818803b
commit a9cc68eb02

View File

@@ -46,8 +46,7 @@ if (vhd_file_is_vhd(f))
err = vhd_check_validity(&vhdm);
// check error status
}
...
...
// do stuff
/* Read 8 sectors from VHD, starting at sector 2048 */
uint8_t buff[4096]; // 8 * 512
vhd_read_sectors(&vhdm, f, 2048, 8, buff);
@@ -80,4 +79,4 @@ vhd_create_file_sz(f, &vhdm, 2048, img_type);
/* Close when done */
vhd_close(&vhdm);
fclose(f);
```
```