Coverage report for server
File: src/commands/ai/connect_nbr.c
Date: 2024-06-25 10:57:05
| Line |
Branch |
Exec |
Source |
| 1 |
|
|
/* |
| 2 |
|
|
** EPITECH PROJECT, 2024 |
| 3 |
|
|
** zappy |
| 4 |
|
|
** File description: |
| 5 |
|
|
** connect_nbr.c |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
#include "server.h" |
| 9 |
|
|
|
| 10 |
|
2 |
void connect_nbr(client_t *client, server_t *server) |
| 11 |
|
|
{ |
| 12 |
|
2 |
size_t nb_slots = team_nb_slots(&server->teams, client->team_name); |
| 13 |
|
|
|
| 14 |
|
2 |
dprintf(client->fd, "%zu\n", nb_slots); |
| 15 |
|
2 |
} |
| 16 |
|
|
|