spicylord / clutils (public) (License: GPLv3) (since 2019-07-04) (hash sha1)
An assortment of new and rewritten preexisting tools written by me.
List of commits:
Subject Hash Author Date (UTC)
bug fixes 5ec9e0063dee0e8cb9b7c88a06535a1c13faa2af spicylord 2019-08-16 04:20:21
added free for previously unfreed malloc buffer fbuf ec2c9bbcb387a718d36bd861083ac2c40134c152 spicylord 2019-08-16 02:01:00
put all of the programs under the GPLv3 or later, also updated sc.c 77dbf20cedc357042ffc03e5da9a51690337a977 spicylord 2019-08-16 01:08:49
added ins to INSTALL script 6d58cd823d49a8ad4a32a57173d5d690ddb677c6 spicylord 2019-08-15 21:23:41
added ins, a program that takes standard input and inserts that into the beginning of a file c51d12a96e47c407a2e82980401556194b2c090e matt 2019-08-15 21:17:47
added exho, a program that runs a command and outputs that command to stdout 4c7b8d4998e747541c420256494cee40ff19fc12 spicylord 2019-07-12 02:29:35
allow for easy use of different c compilers in INSTALL a1bb4ec6cdbd070edb7955022f93ff33ca7255da spicylord 2019-07-11 16:16:46
made COPYING less cringe-inducing 8d1e9ca0093f143c25b919552b544db92c9f865d spicylord 2019-07-10 01:32:22
modified usage output and allowed for #,p 504ca7b3d8db60cb6d1f36a3fd48043ff62f78c0 spicylord 2019-07-06 15:49:16
spelling error in README 351dbee78173eef7ae94f9142c6a97452db0d208 spicylord 2019-07-04 20:30:33
added examples and instructions for clp, spng, and sc in the README 313a86755e40d909861bc95a11b75bbb109012c9 spicylord 2019-07-04 19:25:33
made regex slightly neater ac8eda8f7290e5f138edac12f789b1215de90719 spicylord 2019-07-04 18:31:55
fixed outputting garbled text into clipboard file a100287acf1993ae13130e036d7104bd2afe4585 spicylord 2019-07-04 18:30:34
fixed install script to compile clp.c instead of clb.c 54a54b5da1a122e69ed62bc0f030f11044a62fb9 spicylord 2019-07-04 13:47:33
added email a04151394c9a4b3afe23e8ebd11939fe7892737d spicylord 2019-07-04 02:58:00
initial commit 484a7ed27b1835a962cec85cc6f55a20d4a95b46 spicylord 2019-07-04 02:50:23
Commit 5ec9e0063dee0e8cb9b7c88a06535a1c13faa2af - bug fixes
Author: spicylord
Author date (UTC): 2019-08-16 04:20
Committer name: spicylord
Committer date (UTC): 2019-08-16 04:20
Parent(s): ec2c9bbcb387a718d36bd861083ac2c40134c152
Signing key:
Tree: f1a6abdb3827177599cc1a43c82d602306a8104b
File Lines added Lines deleted
ins.c 3 4
sc.c 1 0
yes.c 2 1
File ins.c changed (mode: 100644) (index ee38f5b..21b792b)
... ... int main(int argc, char *argv[])
25 25 char *fbuf; char *fbuf;
26 26 char *buf; char *buf;
27 27 long fsize, tsize; long fsize, tsize;
28 char instext[10000];
28 char instext[100000];
29 29 fread(instext, sizeof(instext), 1, stdin); fread(instext, sizeof(instext), 1, stdin);
30 30 for (int i=1; argv[i]; i++) { for (int i=1; argv[i]; i++) {
31 31 if (argc>1&&(fp=fopen(argv[i], "a+"))==NULL) { if (argc>1&&(fp=fopen(argv[i], "a+"))==NULL) {
32 32 fprintf(stderr, "ins: unable to open %s\n", argv[i]); fprintf(stderr, "ins: unable to open %s\n", argv[i]);
33 33 continue; continue;
34 34 } }
35 if ((tfp=fopen(".instemp~~~", "a+"))==NULL) {
35 if ((tfp=fopen(".instemp~~~", "w+"))==NULL) {
36 36 fprintf(stderr, "ins: unable to open temporary file\n"); fprintf(stderr, "ins: unable to open temporary file\n");
37 37 return 1; return 1;
38 38 } }
39 39 fseek(fp, 0L, SEEK_END); fseek(fp, 0L, SEEK_END);
40 40 fsize=ftell(fp); fsize=ftell(fp);
41 fbuf=malloc(fsize+1);
42 41 rewind(fp); rewind(fp);
43 fread(fbuf, fsize, 1, fp);
42 fread((fbuf=malloc(fsize+1)), fsize, 1, fp);
44 43 buf=malloc(sizeof(instext)+sizeof(fbuf)+2); buf=malloc(sizeof(instext)+sizeof(fbuf)+2);
45 44 strcpy(buf, instext); strcpy(buf, instext);
46 45 strcat(buf, fbuf); strcat(buf, fbuf);
File sc.c changed (mode: 100644) (index 14427f0..edefe2e)
... ... int main(int argc, char *argv[])
83 83 break; break;
84 84 } }
85 85 } while (++i<argc); } while (++i<argc);
86 free(buf);
86 87 return 0; return 0;
87 88 } }
File yes.c changed (mode: 100644) (index bde3597..b2f6b39)
... ... along with this program. If not, see <https://www.gnu.org/licenses/>.
17 17
18 18 #include <stdio.h> #include <stdio.h>
19 19
20 void main(int argc, char *argv[])
20 int main(int argc, char *argv[])
21 21 { {
22 22 if (argc==1) if (argc==1)
23 23 for(;;) for(;;)
 
... ... void main(int argc, char *argv[])
25 25 else else
26 26 for (;;) for (;;)
27 27 puts(argv[1]); puts(argv[1]);
28 return 1;
28 29 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/spicylord/clutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/spicylord/clutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/spicylord/clutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main