From 9305bb601755e84ff91b79a490be00e0d654251b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Mon, 20 Apr 2020 20:22:20 -0300 Subject: Implement get_element --- page.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'page.c') diff --git a/page.c b/page.c index 7e545c5..e2a122d 100644 --- a/page.c +++ b/page.c @@ -144,3 +144,7 @@ void delete_at_point(struct point *point) { page->element_count--; } } + +uint8_t get_element(struct point *point) { + return point->current_page->buffer[index_to_offset(point->current_page, point->index)]; +} -- cgit v1.2.3