mise a la norme et ajout de ressources dans readme
This commit is contained in:
@@ -5,8 +5,6 @@ void send_char(void)
|
||||
if (message.count_bits == 7)
|
||||
{
|
||||
ft_putchar(message.character);
|
||||
if (message.character == '\0')
|
||||
exit(EXIT_SUCCESS);
|
||||
message.count_bits = 0;
|
||||
message.character = 0;
|
||||
}
|
||||
@@ -38,10 +36,10 @@ void init_message(void)
|
||||
message.text = ft_strdup("");
|
||||
}
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
struct sigaction act_1;
|
||||
struct sigaction act_2;
|
||||
struct sigaction act_1;
|
||||
struct sigaction act_2;
|
||||
|
||||
act_1.sa_flags = SA_SIGINFO;
|
||||
act_1.sa_sigaction = sig_handler_1;
|
||||
@@ -51,7 +49,8 @@ int main()
|
||||
sigaction(SIGUSR2, &act_2, NULL);
|
||||
ft_putnbrendl((int)getpid());
|
||||
init_message();
|
||||
while (1);
|
||||
while (1)
|
||||
;
|
||||
return (0);
|
||||
}
|
||||
|
||||
@@ -105,7 +104,7 @@ int main()
|
||||
** # # # # # # # # # # # # # # # # # # # #
|
||||
** CODE TO CALCULATE TIME IN MICROSECONDS
|
||||
**
|
||||
** found here https://stackoverflow.com/questions/5833094/get-a-timestamp-in-c-in-microseconds
|
||||
** found here : https://stackoverflow.com/a/5833240/9497573
|
||||
**
|
||||
** #include <stdint.h>
|
||||
** #include <sys/time.h>
|
||||
|
||||
Reference in New Issue
Block a user