home *** CD-ROM | disk | FTP | other *** search
- /* this routine does a deep drain on the battery */
-
- #include <CONIO.H>
- #include <STDIO.H>
-
- main()
-
- {
- unsigned char block;
- unsigned long count;
-
- block = ' ';
-
- printf ("\n\nDeepDrain by Steven Polsky\n\n");
-
- printf ("Deep Draining your laptop battery makes it recharge more completely.\n");
- printf ("Run this program until ██ stops flashing, or press any key to abort.\n\n");
-
- while (! kbhit()) {
- printf ("Deep Draining Battery %c%c\r", block, block);
-
- if (block == ' ') {
- block = 'â–ˆ';
- }
- else {
- block = ' ';
- }
-
- /* pause */
- for (count = 1; count < 100000; count++) {
- }
- }
-
- printf ("\n\nDeepDrain aborted!\n\n");
-
- return(1);
- }
-