~ubuntu-branches/ubuntu/hardy/9base/hardy

« back to all changes in this revision

Viewing changes to sleep/sleep.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-01-25 15:33:00 UTC
  • Revision ID: james.westby@ubuntu.com-20060125153300-6hh4p9wx8iqqply5
Tags: upstream-2
ImportĀ upstreamĀ versionĀ 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <u.h>
 
2
#include <libc.h>
 
3
 
 
4
void
 
5
main(int argc, char *argv[])
 
6
{
 
7
        long secs;
 
8
 
 
9
        if(argc>1)
 
10
                for(secs = atol(argv[1]); secs > 0; secs--)
 
11
                        sleep(1000);
 
12
        exits(0);
 
13
}