From 284bc1b70e0530527d65021a029ec4e3a7c27e0e Mon Sep 17 00:00:00 2001 From: wullie <1+wullie@noreply.localhost> Date: Tue, 11 Aug 2026 21:13:24 +0000 Subject: [PATCH] Upload files to "src/namespace" --- src/namespace/ConversionNamespace.c | 15 +++++++++++++++ src/namespace/printingNamespace.c | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/namespace/ConversionNamespace.c create mode 100644 src/namespace/printingNamespace.c diff --git a/src/namespace/ConversionNamespace.c b/src/namespace/ConversionNamespace.c new file mode 100644 index 0000000..c93a872 --- /dev/null +++ b/src/namespace/ConversionNamespace.c @@ -0,0 +1,15 @@ +// this code is licenced under Wrathmark licence +// © 2026 wullie wulliestudio.com +// please see attached licence for full usage and rights + +#include "stdWullie/namespaces/convert.h" + +int intParser(char *rawInt); +void upper(char string[]); +void lower(char string[]); + +const ConversionNameSpace convert = { + .toInt = intParser, + .toLower = lower, + .toUpper = upper, +}; diff --git a/src/namespace/printingNamespace.c b/src/namespace/printingNamespace.c new file mode 100644 index 0000000..4a360ba --- /dev/null +++ b/src/namespace/printingNamespace.c @@ -0,0 +1,18 @@ +// this code is licenced under Wrathmark licence +// © 2026 wullie wulliestudio.com +// please see attached licence for full usage and rights + +#include "stdWullie/namespaces/print.h" + +void printText(char *string); +void printReturn(char *string); +void ColourPrint(char *string, char *colour); +void BackgroundPrint(char *string, char *Bcolour); + +const PrintNameSpace print = { + .text = printText, + .nl = printReturn, + .colour = ColourPrint, + .background = BackgroundPrint, +}; +