Customizable Console - Documentation



Logo
Cross-Platform C Programs

Cross-platform prowess defines the remarkable versatility of the C programming language, showcasing its enduring relevance in the ever-evolving software landscape. From Windows to Linux, macOS to UNIX, and even venturing into embedded systems like FreeRTOS, C remains a lingua franca for developers aiming to transcend platform boundaries. This power lies in C's portability, enabling code to seamlessly traverse diverse ecosystems while maintaining performance and reliability. Whether it's harnessing the language's low-level control for crafting efficient software, bridging legacy and modern systems, or orchestrating intricate interactions within constrained environments, C's ability to navigate this expansive spectrum underscores its enduring role in cross-platform app development.

Delving even further into C's adaptability, its domain extends to reviving the digital vestiges of yesteryears. In the realm of retro computing, where vintage terminals and archaic systems endure, C provides a bridge to the past. It enables developers to resurrect old interfaces and interoperate with aging hardware, breathing new life into legacy systems through revitalized software experiences. Beyond these nostalgic frontiers, C transcends into the contemporary landscape, serving as a unifying force across the intricate tapestry of platforms, from the intricate intricacies of embedded systems to the vast expanse of modern operating systems, solidifying its status as a timeless language of cross-platform innovation.




In this section of documentation, we'll look at functions in our library that can run on every system that can compile C/C++ code and run it. With all of details and codes.


c_drawHorizontalLine

Function to draw a horizontal line with a specified width
Parameter width - This argument must be a number (const int) and it specifies a width for line
Parameter horizontalChar - is a char that will be printed on line
This function does not return anything

c_setAttribute



c_draw_box

Function to draw a box with given height and width
Parameter width - This argument must be a number (const int) and it specifies width for box
Parameter height - This argument must be a number (const int) and it specifies height for box
Parameter crossChar - This argument must be a character (const char) and it will be printed on the corners of box
Parameter horizontalChar - This argument must be a character (const char) and it will be printed on top and bottom of box
Parameter verticalChar - This argument must be a character (const char) and it will be printed on the right and left of box
This function does not return anything

c_setAttribute



c_draw_box

Function to draw a box with given height and width
Parameter width - This argument must be a number (const int) and it specifies width for box
Parameter height - This argument must be a number (const int) and it specifies height for box
Parameter crossChar - This argument must be a character (const char) and it will be printed on the corners of box
Parameter horizontalChar - This argument must be a character (const char) and it will be printed on top and bottom of box
Parameter verticalChar - This argument must be a character (const char) and it will be printed on the right and left of box
This function does not return anything

c_setAttribute



c_draw_text_box

Function to draw a box with given height and width
Parameter height - This argument must be a number (const int) and it specifies height for box
Parameter crossChar - This argument must be a character (const char) and it will be printed on the corners of box
Parameter horizontalChar - This argument must be a character (const char) and it will be printed on top and bottom of box
Parameter verticalChar - This argument must be a character (const char) and it will be printed on the right and left of box
ext This argument must be a string (const char*) and it will be on the center og box
This function does not return anything

c_setAttribute



c_draw_circle

Function to draw a circle
Parameter radius - This argument must be a number (const int) and it specifies radius for circle
This function does not return anything

c_setAttribute



c_draw_triangle

Function to draw a triangle
Parameter height - This argument must be a number (const int) and it specifies height for triangle
This function does not return anything

c_setAttribute



c_draw_text_triangle

Function to draw a triangle
Parameter height - This argument must be a number (const int) and it specifies height for triangle
text This argument must be a string (const char*) and it will be printed on the center of triangle
This function does not return anything

c_setAttribute



c_printTable

Function to draw a table
tableData two dimensional string array that will be printed (const char***)
numRows number of rows in table (int)
numCols number of columns in table (int*)

c_setAttribute