This is The Standard Toolkit, this libary is intended to be an extension to the standard library for C/C++.
The Standard Toolkit automates processes that are not usually automated, aswell as adding function that save developers some time.
This is the basic documentation of each function from the Standard Toolkit
To include this library in your project, simply do:
#include "standard-toolkit/stdtoolkit.h"
Ensure the library is in the project folder, if you put the library with standard headers, user <> instead of ""
returns the sum of two integers
returns the product of two integers after subtraction
returns the product of two integers after multiplication
returns the product of two integers after division
Outputs the current time and date when executed
Outputs the current Hour, Minute and second when executed
Outputs the current calender date (yy/mm/dd) when executed
Outputs the fahrenheit value of the integer passed (assumes integer passed is a celsius value)
Outputs the celsius value of the integer passed (assumes integer passed is a fahrenheit value)
Automates looping, the char is printed based on the size of the int
Similar to repeat, will repeat until process is broken
Ex:
repeat("Hello, World! ", 5);
Output:
Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!
Generates a random string, string length is based on size of the integer
Currently only supports floats and integers
Swaps integer values
Swaps float values
Ex:
//swapI example
int main()
{
int big = 5;
int small = 2;
swapI(&big, &small);
printf("Big: %d, Small: %d\n\n", big, small);
return 0;
}
//swapF example
int main()
{
float big = 3.25;
float small = 2.25;
swapF(&big, &small);
printf("Big: %3.2f, Small: %3.2f", big, small);
return 0;
}