A type library for C that includes: new variable names, bool, dynamic array, string, conversion between string and numeric types, and some file/memory management.
Creates a new Array with the given Length.
Returns the address of the newly allocated Array.
You must initialize every Array with this function before use!
Returns an Element from the Array at the given Index.
Assign a value to an Element: arrElement(Array, Index)->uInt = 10;
Get a value from an Element: uint8 a = arrElement(Array, Index)->uInt;
Inserts a new Element to the Array at the given Index.
Returns the address of the new Element.
The default value of the new Element is 0.
Set the value of the new Element: arrInsert(Array, Index)->uInt = 10;
Removes an element from the Array at the given Index.
Frees the Array from the memory with all of its Elements.
It is safe to pass NULL to this function.
Returns the Length of the String (char*) with the '\0' included.
Creates a new String, the String->String will be "\0" and the String->Length will be 1.
Returns the address of the newly allocated String.
You must initialize every String with this function before use.
Replaces the String->String of the String with the given String (char*).
Appends the given Character to the end of the String.
Concatenates two or more Strings (char*) into one String.
The number of the Strings (char*) to be concatenated must be accurate.
Reads the content of standard input until '\n' and stores it in a String.
Splits the String (char*) into an Array by the given Character.
Compares two Strings (char*) Character by Character and returns true if they are equal or false if they differ.
Frees the String from the memory and its String->String value.
It is safe to pass NULL to this function.
Converts the String to an Unsigned Integer.
You can check the Success of the conversion by passing a Logic variable by reference, it is safe to pass NULL if error handling is not needed.
If it fails it will return 0 as result.
Converts an Unsigned Integer to String.
Returns 0 on success or 1 on error.
Converts the String to a Signed Integer.
You can check the Success of the conversion by passing a Logic variable by reference, it is safe to pass NULL if error handling is not needed.
If it fails it will return 0 as result.
Converts a Signed Integer to String.
Returns 0 on success or 1 on error.
Converts the String to a Double.
You can check the Success of the conversion by passing a Logic variable by reference, it is safe to pass NULL if error handling is not needed.
If it fails it will return 0 as result.
Converts a Double to String.
Returns 0 on success or 1 on error.
Reads the content of a text file and puts its lines into an Array.
Returns 0 on Success or 1 on Error.
Writes the content of an Array of Strings line by line into a text file.
Returns 0 on Success or 1 on Error.
Copies a block of memory.
Returns the address of the copied memory or NULL if Size was 0.
Copies a block of memory to the given Destination.
You must preallocate the Destination to the correct Size.
Loads data to the memory from a file.
Returns the address of the loaded data or NULL if Size was 0.
Loads data to the given Destination.
You must preallocate the Destination to the correct Size.
Saves data from the memory into a file.
Returns 0 on Success or 1 on Error.