Skip to content

Instantly share code, notes, and snippets.

View barrucadu's full-sized avatar

Michael Walker barrucadu

View GitHub Profile
BIN := xo
CC := gcc
CFLAGS := -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Winit-self -Wmissing-prototypes -Wstrict-prototypes -Wconversion -std=gnu99 -ggdb -pedantic
SOURCES := $(wildcard *.c)
.PHONY: all clean
all: $(BIN)
$(BIN): $(SOURCES:.c=.o)
@barrucadu
barrucadu / Cypher.c
Created November 2, 2011 13:43 — forked from anonymous/Cypher.c
#include <stdio.h>
#include <string.h>
#define MAXSTR 50
char pt[MAXSTR], ct[MAXSTR], dt[MAXSTR] ;
int trans(void){ /*Transposition Cypher
*Swaps adjacent pairs of letters
*/