Skip to content

Instantly share code, notes, and snippets.

@leocozzens
leocozzens / exlit.c
Last active November 12, 2023 20:48
ExLit - A simple monofile program to extract text from any file into a single language readable string literal
/*
ExLit - Literal Extraction Tool
Author: Leo Cozzens
Date: 11/12/2023
Description:
Generalist tool made to extract text data from ASCII source files.
Outputs into a single compiler readable string literal at the runtime specified output.
@leocozzens
leocozzens / stpcpy.c
Created October 12, 2023 12:12
stpcpy implementation since not all libc implementations have one
#define NULL ((void*)0)
char *local_stpcpy(char *restrict dest, const char *restrict source) {
if(dest == NULL || source == NULL) return NULL;
while(*source != '\0') *dest++ = *source++;
*dest = '\0';
return dest;
}
@leocozzens
leocozzens / fibb.c
Created September 8, 2023 03:58
Quick fibbonaci sequence calculator
/*
Project by: Leo Cozzens
Date: 09/5/23
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
@leocozzens
leocozzens / file_handler.c
Last active September 5, 2023 09:56
Handle retention oriented file output handler. Ideal for daemons.
/*
Project by: Leo Cozzens
Date: 09/5/23
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/

Keybase proof

I hereby claim:

  • I am javadavinci on github.
  • I am javadavinci (https://keybase.io/javadavinci) on keybase.
  • I have a public key whose fingerprint is A3F4 42EA 496E 7151 A335 973B 0868 B3E0 058F AEAA

To claim this, I am signing this object: