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
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) |
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 <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 | |
*/ |