projects
/
external
/
procps.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated with Tizen:Base source codes
[external/procps.git]
/
uptime.c
1
#include <stdio.h>
2
#include <string.h>
3
#include "proc/whattime.h"
4
#include "proc/version.h"
5
6
int main(int argc, char *argv[]) {
7
if(argc == 1) {
8
print_uptime();
9
return 0;
10
}
11
if((argc == 2) && (!strcmp(argv[1], "-V"))) {
12
display_version();
13
return 0;
14
}
15
fprintf(stderr, "usage: uptime [-V]\n -V display version\n");
16
return 1;
17
}