Mercurial Hosting > dis
changeset 4:8448e78efe82 default tip
Autmatic Win32 Porting
author | VilyaemKenyaz |
---|---|
date | Thu, 28 Sep 2023 13:20:56 -0400 |
parents | a499c3c6b9ae |
children | |
files | DIS.MAN LICENSE c.ksh c.sh dis dis.c win32/dis.exe |
diffstat | 7 files changed, 56 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DIS.MAN Thu Sep 28 13:20:56 2023 -0400 @@ -0,0 +1,13 @@ +DIS +.SH +NAME +.PP +dis +.SH +SYNOPSIS +.PP +dis (file) +.SH +DESCRIPTION +.PP +dis or Display is a program dedicated to displaying the contents of file.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE Thu Sep 28 13:20:56 2023 -0400 @@ -0,0 +1,29 @@ + CHRISTIAN FREE SOFTWARE LICENSE + CFSL + +This software is free and open source charity ware, users are asked +to donate to the Eastern Orthodox Church by any means. + +Redistribution of this project in source and/or binary forms with/without +modification, are permitted provided that the following conditions are met: + +1. Redistributions must retain this notice, the conditions, and the disclaimer. +2. Redistributions must retain credit to the author, and signage to where the original +work can be found. +3. Redistributions cannot become a part of, in anyway shape or form, part of proprietary +software, or software that is clearly out of line with Christian values. +4. Redistributions must remain free. + +DISCLAIMER + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + + +
--- a/c.ksh Tue Aug 29 16:37:37 2023 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -#!/bin/sh - clear - rm dis -# tcc dis.c -o dis - cc dis.c -o dis -# cp dis /usr/bin/ -# gdb -ex run dis
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c.sh Thu Sep 28 13:20:56 2023 -0400 @@ -0,0 +1,7 @@ +#!/bin/sh +clear +rm dis +tcc dis.c -o dis +doas cp dis /usr/bin/ +x86_64-w64-mingw32-gcc dis.c -o dis.exe +mv dis.exe win32
--- 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); }