Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./Debug/main.c.o ./Debug/dot.c.o ./Debug/dataBase.c.o ./Debug/intPrompt.c.o
- ./Debug/numWords.c.o ./Debug/LinkedList.c.o
- void shortLines(char* f1, char* f2, int maxlen) {
- FILE* fp = fopen(f1, "r");
- FILE* fp2 = fopen(f2, "w");
- if (fp == NULL) {
- perror("File does not exist");
- }
- if (fp2 == NULL) {
- perror("File does not exist");
- }
- char singleLine[maxlen];
- char check;
- size_t len;
- do {
- fgets(singleLine, maxlen, fp);
- len = strlen(singleLine);
- if (singleLine[len-1] == 'n') {
- singleLine[len-1] = '