Skip to content
Snippets Groups Projects
Commit c52c626c authored by T.Wadi's avatar T.Wadi
Browse files

printLine function implimented

parent 24850add
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,15 @@
#include "datastructure.h"
#include "datetime.h"
#include "tools.h"
#include "menu.h"
int main()
{
printLogo();
delay(2);
clearScreen();
return 0;
}
......@@ -62,7 +62,6 @@ void printLogo ()
}
else {
puts("Logo not found\n");
exit(1);
}
}
......@@ -79,4 +78,14 @@ void delay(unsigned int number_of_seconds)
// looping till required time is not achieved
while (clock() < start_time + milli_seconds)
;
}
/**********************************************************/
/**********************************************************/
void printLine(char zeichen, unsigned int limit)
{
for(uint8_t i = 0; i < limit; ++i)
{
printf("%c",zeichen);
}
puts("\n");
}
\ No newline at end of file
......@@ -6,5 +6,5 @@ void waitForEnter();
int askYesOrNo(char*);
void printLogo ();
void delay(unsigned int number_of_seconds);
void printLine(char, unsigned int);
#endif // TOOLS_H_INCLUDED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment