diff dis.c @ 4:8448e78efe82 default tip

Autmatic Win32 Porting
author VilyaemKenyaz
date Thu, 28 Sep 2023 13:20:56 -0400
parents a499c3c6b9ae
children
line wrap: on
line diff
--- a/dis.c	Tue Aug 29 16:37:37 2023 -0400
+++ b/dis.c	Thu Sep 28 13:20:56 2023 -0400
@@ -1,7 +1,13 @@
-//Displays a program, alternative to "cat", uses my based file library
+/*********************************************
+* Description - Display a file, dis
+* Author - William King
+* Date - Sep 25 2023
+* *******************************************/
+
 #include <stdio.h> 
 #include <stdlib.h>
 #include <string.h>
+
 #include "basedfilelib.h"
 
 void main(int argc, char* argv[]){
@@ -9,16 +15,6 @@
 	//puts("Displaying:");
 	char * filetoread = argv[1];
 	char * file = ReadFile(filetoread);
-	//printf("Contents of argv: %s\n",*argv);
-	//printf("Reading file: %s\n",filetoread);
-/*
-	while(strlen(file) != 0){
-		//char * print = ReadLine(file,1);
-		printf("%s\n",ReadLine(file,1));
-		DeleteLine(file,1);
-	}
-*/
-
 	printf("%s\n",file);
 	exit(0);
 }