#pragma once
#ifndef LIBC_FUNCTIONS_H
#define LIBC_FUNCTIONS_H

int libc_init(void);

/*  QSEE includes */
#ifdef QSEE
#include "comdef.h"
#include "qsee_services.h"
#include "qsee_heap.h"
#include "qsee_log.h"
#include "ctype.h"
#endif

#ifdef USE_BLOWFISH
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>

int bf_atoi( const char* str );
#define atoi bf_atoi

void * malloc(size_t size);
void free(void * addr);
void * realloc(void * addr, size_t size);

#endif

#ifdef QSEE
#if defined(USE_QSEE_MEMORY_ALLOC)
#ifdef malloc
#undef malloc
#endif
#define malloc qsee_malloc
#ifdef free
#undef free
#endif
#define free qsee_free
#endif
#endif //#ifdef QSEE

#endif
