blob: 19fa2ea183a670343f8e331077dff1fd26120d3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/17 11:57:44 by dkaiser #+# #+# */
/* Updated: 2025/01/18 12:56:44 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_UTILS_H
# define FT_UTILS_H
# include <stdlib.h>
# include <stdio.h>
# include <sys/time.h>
/*
** Prints error message and returns EXIT_FAILURE
*/
int ft_err(const char *str);
/*
** Returns integer value from str
*/
int ft_atoi(const char *str);
/*
** Returns current time in milliseconds
*/
unsigned int ft_cur_time_in_ms();
/*
** Prints "timestamp_in_ms id str"
*/
void ft_log(int id, const char *str);
#endif
|