25 lines
1.2 KiB
C
25 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* arghandle.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/03/18 23:38:17 by tischmid #+# #+# */
|
|
/* Updated: 2023/03/19 00:56:15 by tischmid ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef ARGHANDLE_H
|
|
# define ARGHANDLE_H
|
|
|
|
void wrong_argc(int expected, int argc);
|
|
void usage(char *argv0);
|
|
int wrong_dimension(char *dim, int max, int actual);
|
|
int get_dim(char *type, int default_max);
|
|
|
|
extern const int g_default_max_width;
|
|
extern const int g_default_max_height;
|
|
|
|
#endif
|