diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-22 18:07:50 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-22 18:07:50 +0300 |
commit | 225600aadffc6fdb188fef230cdab67e1242e3a3 (patch) | |
tree | 026d4017b40906a0aa3b2044cf6b52049a053a1c /src/ckutil.h | |
parent | eeca7f0151d85d563d1db229e3b7ca936323ffa2 (diff) | |
download | ck-225600aadffc6fdb188fef230cdab67e1242e3a3.tar.gz ck-225600aadffc6fdb188fef230cdab67e1242e3a3.tar.bz2 ck-225600aadffc6fdb188fef230cdab67e1242e3a3.zip |
Add almost done, opt parsing remains
Diffstat (limited to 'src/ckutil.h')
-rw-r--r-- | src/ckutil.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ckutil.h b/src/ckutil.h index c99798d..eab7808 100644 --- a/src/ckutil.h +++ b/src/ckutil.h @@ -7,10 +7,39 @@ * Copyright (C) 2018 Anastasis Grammenos * GPLv3 (see LICENCE for the full notice) * + * ----------------------------------------------------------------------------- + * + * Utility funtions and global constants. + * * -------------------------------------------------------------------------- */ #ifndef CKUTIL_H #define CKUTIL_H +/*******************/ +/* global includes */ +/*******************/ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +/********************/ +/* global constants */ +/********************/ + +/* String length - Small */ +#define STR_S 30 + +/* String length -Medium */ +#define STR_M 100 + +/* String length - Large */ +#define STR_L 400 + +/*********************/ +/* utility functions */ +/*********************/ + /* Returns 1 if path is a directory, else returns 0. */ extern int util_is_dir(const char *path); |