From: "Chris Nanakos" <nanakos@wired-net.gr>
To: "John T. Williams" <jtwilliams@vt.edu>,
linux-c-programming <linux-c-programming@vger.kernel.org>
Subject: Re: stdio
Date: Wed, 18 Jun 2003 21:30:11 +0300 [thread overview]
Message-ID: <003c01c335c7$a7f437b0$3d6405d5@carlos> (raw)
In-Reply-To: 011801c33580$48425aa0$e764a8c0@fesnel.noip.org
Try this.....and make your own changes....if helps just send an e-mail!!!
#This is a progress bar with iterations
#A lot of implementations can exist.Try this one and tell me if its done or
else i will send another one.
#include <stdio.h>
main()
{
int progress,j;
progress=1;
for(j=0;j<=100;j++)
{
if(progress(!=101)
{int i;
printf("\33[1;34m");
printf("\r|");
for(;i<50;i++)
fprintf(stdout," ");
fprintf(stdout,"%6.2f %%",(float)2.5*progress);
fflush(stdout);
progress++;
}
usleep(40000);
}
printf("\33[0m");
printf("\n");
return;
}
next prev parent reply other threads:[~2003-06-18 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 9:58 stdio John T. Williams
2003-06-18 12:02 ` stdio Jan-Benedict Glaw
2003-06-18 12:17 ` stdio Luciano Moreira - igLnx
2003-06-18 13:04 ` stdio Stephen Satchell
2003-06-18 17:45 ` stdio Glynn Clements
2003-06-18 18:30 ` Chris Nanakos [this message]
2003-06-19 7:33 ` I'm really starting to dislike stdio John T. Williams
2003-06-19 11:26 ` Jan-Benedict Glaw
2003-06-19 17:39 ` Glynn Clements
2003-06-19 12:56 ` Andrés Roldán
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003c01c335c7$a7f437b0$3d6405d5@carlos' \
--to=nanakos@wired-net.gr \
--cc=jtwilliams@vt.edu \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).