Coverage report for server


src/
File: src/commands/gui/sst.c
Date: 2024-06-25 10:57:05
Lines:
0/9
0.0%
Functions:
0/1
0.0%
Branches:
0/4
0.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2024
3 ** zappy
4 ** File description:
5 ** sst.c
6 */
7
8 #include "server.h"
9
10 void sst(client_t *client, server_t *server)
11 {
12 int freq;
13
14 if (!client->commands[1]) {
15 dprintf(client->fd, "sbp\n");
16 return;
17 }
18 freq = atoi(client->commands[1]);
19 if (freq < 1) {
20 dprintf(client->fd, "sbp\n");
21 return;
22 }
23 server->proprieties.frequency = freq;
24 dprintf(client->fd, "sst %d\n", server->proprieties.frequency);
25 }
26