Skip to content

Instantly share code, notes, and snippets.

View RenatoUtsch's full-sized avatar

Renato Utsch RenatoUtsch

View GitHub Profile
@RenatoUtsch
RenatoUtsch / stack.c
Created November 28, 2012 17:42
C Stack implementation
#include <stdlib.h>
#include <string.h>
#include "stack.h"
typedef struct StackNode {
StackItem item; /** The data of this node. **/
struct StackNode *next; /** The next node (the one below the top). **/
} StackNode;
struct Stack {
@RenatoUtsch
RenatoUtsch / FindMYSQL.cmake
Created January 16, 2012 22:17
Find MySQL with CMake.
# - Try to find MySQL.
# Once done this will define:
# MYSQL_FOUND - If false, do not try to use MySQL.
# MYSQL_INCLUDE_DIRS - Where to find mysql.h, etc.
# MYSQL_LIBRARIES - The libraries to link against.
# MYSQL_VERSION_STRING - Version in a string of MySQL.
#
# Created by RenatoUtsch based on eAthena implementation.
#
# Please note that this module only supports Windows and Linux officially, but