-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgraph_get_data.c
More file actions
20 lines (18 loc) · 1.04 KB
/
graph_get_data.c
File metadata and controls
20 lines (18 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* graph_get_data.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mihykim <mihykim@student.42seoul.kr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/13 11:17:25 by mihykim #+# #+# */
/* Updated: 2020/07/04 00:55:33 by mihykim ### ########.fr */
/* */
/* ************************************************************************** */
#include "graph.h"
void *graph_get_data(t_graph *graph, unsigned int vertex)
{
if (graph == NULL || graph->size <= vertex)
return (NULL);
return (graph->data[vertex]);
}