-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
26 lines (20 loc) · 792 Bytes
/
utils.h
File metadata and controls
26 lines (20 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
utils.h
Visible structs and functions for helper functions to do with reading and
writing.
Skeleton written by Grady Fitzpatrick for COMP20007 Assignment 1 2021
*/
/* Because we use FILE in this file, we should include stdio.h here. */
#include <stdio.h>
/* Because we use struct graph in this file, we should include graph.h here. */
#include "graph.h"
/* The problem specified. */
struct graphProblem;
/* Reads the data from the given file pointer and returns a pointer to this
information. */
struct graphProblem *readProblem(FILE *outageFile, FILE *networkFile);
/* Finds a solution for a given problem. */
struct solution *findSolution(struct graphProblem *problem,
enum problemPart part);
/* Frees all data used by problem. */
void freeProblem(struct graphProblem *problem);