Finished refactoring to remove all global variables

This commit is contained in:
jsteube
2016-09-30 22:52:44 +02:00
parent d16b6228a6
commit fb3e6bab0d
28 changed files with 503 additions and 285 deletions

22
src/main.c Normal file
View File

@@ -0,0 +1,22 @@
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "types.h"
#include "hashcat.h"
int main (int argc, char **argv)
{
hashcat_ctx_t *hashcat_ctx = malloc (sizeof (hashcat_ctx_t));
const int rc = hashcat (hashcat_ctx, argc, argv);
free (hashcat_ctx);
return rc;
}