Article Index

Function to copy a record.

#include "project.h"

void RecCpy(COURSE* dest, COURSE* source)
{
	strcpy(dest -> number, source -> number);
	strcpy(dest -> title, source -> title);
	dest -> credit = source -> credit;
	dest -> lab = source -> lab;
	dest -> next = source -> next;
	dest -> previous = source -> previous;

	return;
}
Log in to comment