diff options
author | rafa_99 <rafa99@protonmail.com> | 2020-09-22 23:20:43 +0100 |
---|---|---|
committer | rafa_99 <rafa99@protonmail.com> | 2020-09-22 23:20:43 +0100 |
commit | 2384e3c50dcd6c5a0dadaf5e44c6206578345ebd (patch) | |
tree | 45abac4d808716bc739a93046f24df20e7e5c1c8 /utils.h | |
parent | 5ec6cc925d800cfe1c3abcca4c6d9b5f120d8741 (diff) |
Added Initial OS Detection
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> + +#define ERROR -1 + +enum os +{ + pacman, + apt, + emerge, + xbps, + ENUMSIZE +}; + +int checkIfFileExists(char *path); +int detectOsType(); |