This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define MIN_RAND_NUMBER 10 | |
#define MAX_RAND_NUMBER 60 | |
#define STATE_YOU 0 | |
#define STATE_BOT 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define Y you | |
#define ILA I look at | |
#define ILAYA ILA you all | |
#define IDK I dont know | |
#define HYW how Y were | |
#define WSMGGW(x) x my guitar gently weeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
//#define DEBUG | |
#define EOT 4 | |
#define TO_CHAR(_x) ((unsigned char)_x) | |
#define TO_NUMBER(_x) ((_x >= '0' && _x <= '9') ? (double)(_x - '0') : 0.0) | |
#define SIGNUM(_x) (signbit(_x) ? -1.0 : 1.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define TO_CHAR(_x) ((unsigned char)_x) | |
#define MAX_LINE_LENGTH 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <limits.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/resource.h> | |
#include <sys/times.h> | |
#include <time.h> | |
#include <unistd.h> | |
#define KB (1024 * sizeof(char)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "linked_list_management.h" | |
void add_page_to_pool_free_list(mem_pool *pool, mem_page *new_page) { | |
mem_page *current_page = pool->free_pages; | |
if (current_page == NULL) { | |
pool->free_pages = new_page; | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEFAULT_LINE_BUFFER_LENGTH 1024 | |
#define DEFAULT_LINE_BUFFER_INCREMENT DEFAULT_LINE_BUFFER_LENGTH | |
#define ARG_IS_NOT_SEARCH_WORD "-x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define EOL '\n' | |
#define DEFAULT_LINE_BUFFER_LENGTH 1024 | |
#define DEFAULT_LINE_BUFFER_INCREMENT DEFAULT_LINE_BUFFER_LENGTH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "bot_karl.h" | |
bool bot_karl_ready_to_work = false; | |
void intialize_bot_karl(pt_four_wins_ctx ctx) { | |
//printf("Bot Karl intialized\n"); | |
srand(time(NULL)); | |
bot_karl_ready_to_work = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS = -Wall -g -std=gnu99 | |
LFLAGS = -R/usr/local/lib -lm | |
SHARED = -fPIC -shared | |
CC = gcc | |
DEPENDFILE = .dependencies | |
SRC = dups.c hashtable.c | |
SHSRC = | |
OBJ = $(SRC:%.c=%.o) | |
SHOBJ = $(SHSRC:%.c=%.so) |
OlderNewer