Here's an example of an extra feature I built into my version of printf:
Code:
pawPrintf
(
L"%80lc\n%|80ls\n%80lc\n",
L'=', L"Draw Loop", L'='
);
Output:
Code:
================================================================================
Draw Loop
================================================================================
I'm also planning to add time specifiers, I also have a binary specifier, modifiers for UTF-8, UTF-16, UTF-32, TCHAR & whatever happens to be the biggest character type on the system (in this case UTF-32)
Are there any other suggestions people would like to have added to my printf, I'm planning it to be part of a optional library for a cross-platform, cross-distro solution to making apps, because of the design hinging on the PATH & related variables it also works as a solution to "supporting" flatpack snaps etc with just instance of the app, they would just launch the paw version under the hood and let paw map in the directories containing what libraries & binaries it is looking for, not just system wide binaries & libraries but also app specific and even debug & timed variants, these are the way they would be mapped in before the main executable is launched:
paw [--dev=dir] --start[=arch,ext(exe,AppImage,etc)] command
paw [--dev=dir] --debug[=arch,ext(exe,AppImage,etc)] command
paw [--dev=dir] --timed[=arch,ext(exe,AppImage,etc)] command
In all cases the binaries & libraries for the --start command will be mapped in just before the native executables, this has the side effect of built-in portability (provided there's no hard system dependencies made by the app & it's own libs, the paw library is going to be a optional solution to that issue) & the debug/timed libraries will be mapped in before that if they're requested, there won't be a need to differentiate the names of the binaries libraries either since that is already solved by the PATH etc variables having the paw directories mapped in, that should simplify makefiles etc too since the job of sorting out the directories. The --dev option is for non-installed development builds so it's easier to utilise paw for that also