24 lines
1.1 KiB
C
24 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* util.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mcolonna <mcolonna@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/03 14:19:03 by mc #+# #+# */
|
|
/* Updated: 2024/10/04 15:27:07 by mcolonna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef UTIL_H
|
|
# define UTIL_H
|
|
|
|
/// @brief Get the length of a string.
|
|
int getlen(const char *str);
|
|
|
|
/// @brief Write an error message on stderr.
|
|
///
|
|
/// @param str... All the strings to write. The last parameter MUST BE NULL.
|
|
void write_err(const char *str, ...);
|
|
|
|
#endif
|