Article Index

Function to give default values of 0 to a course record.

#include "project.h"

void InitializeRec(COURSE* CoursePointer)
{
	CoursePointer -> number[0] = 0;
	CoursePointer -> title [0] = 0;
	CoursePointer -> credit = 0;
	CoursePointer -> lab = FALSE;
	CoursePointer -> next = NULL;
	CoursePointer -> previous = NULL;

	return;
}
Log in to comment