aboutsummaryrefslogtreecommitdiff
path: root/philo/include/ft_utils.h
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-17 12:06:21 +0100
committerDominik Kaiser2025-01-17 12:06:21 +0100
commited1c486272f06d977d308a8bcaaa4b1dac12b6d7 (patch)
tree153e37e19b5c2e540104753240f89af0c4c07852 /philo/include/ft_utils.h
parent7f62b82b1fcf64b1bb4fc6e536706a91ed99c492 (diff)
downloadPhilosophers-ed1c486272f06d977d308a8bcaaa4b1dac12b6d7.tar.gz
Philosophers-ed1c486272f06d977d308a8bcaaa4b1dac12b6d7.zip
Add ft_utils
Diffstat (limited to 'philo/include/ft_utils.h')
-rw-r--r--philo/include/ft_utils.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/philo/include/ft_utils.h b/philo/include/ft_utils.h
new file mode 100644
index 0000000..64804c2
--- /dev/null
+++ b/philo/include/ft_utils.h
@@ -0,0 +1,26 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_utils.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2025/01/17 11:57:44 by dkaiser #+# #+# */
+/* Updated: 2025/01/17 12:00:11 by dkaiser ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef FT_UTILS_H
+#define FT_UTILS_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);
+
+#endif