-
Notifications
You must be signed in to change notification settings - Fork 0
/
result.c
24 lines (22 loc) · 1.23 KB
/
result.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* result.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dskrypny <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/22 17:05:01 by dskrypny #+# #+# */
/* Updated: 2018/07/22 23:06:19 by dskrypny ### ########.fr */
/* */
/* ************************************************************************** */
#include "header.h"
void print_result(t_result *res)
{
mvwprintw(res->win[1], 1, 1, "%55s", "");
wrefresh(res->win[1]);
mvwprintw(res->win[2], 1, 2, "%20s", "");
mvwprintw(res->win[2], 2, 2, "%20s", "");
mvwprintw(res->win[2], 1, 2, "Your name is: %s", res->name);
mvwprintw(res->win[2], 2, 2, "Your result is: %d", res->result);
wrefresh(res->win[2]);
}