Bootable disc creator in c language

how to code for a disk creator able to boot in C language? I mean to start a USB key from code c. we should create a program in c language to boot the discs.