#include "dos.h" /* AN000 */ #include "fdisk.h" /* AN000 */ #include "extern.h" /* AN000 */ #include "subtype.h" /* AN000 */ #include "string.h" /* AN000 */ /* */ void make_partition(size,free_pointer,bootable,type) unsigned size; char free_pointer; unsigned char bootable; char type; BEGIN char table_pointer; unsigned i; unsigned char temp; unsigned long total_sectors; /* Find a free spot to put it in */ table_pointer = find_free_partition(); if (table_pointer != ((char)(NOT_FOUND))) BEGIN /* found a free partition, now lets go fill it up */ /* Do we need to make it active? */ if (bootable == ((unsigned char)(ACTIVE))) BEGIN /* Go clear out a previously active one */ for (i=u(0); i