| /l3/users/My-Debian-Work/adm.prombez/ol14 :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
|
$./who1
1344693553
reboot ~ 1344693553
runlevel ~ 1344693553
1344693683
LOGIN tty6 1344693683
LOGIN tty4 1344693683
LOGIN tty2 1344693683
LOGIN tty5 1344693683
LOGIN tty3 1344693683
LOGIN tty1 1344693683
ol14 tty7 1344826101 :0
ol14 pts/0 1344844891 :0.0
ol14 pts/2 1344827648 :0.0
ol14 pts/4 1344829989 :0.0
ol14 pts/6 1344830680 :0.0
ol14 pts/10 1344831878 :0.0
ol14 pts/12 1344831884 :0.0
ol14 pts/14 1344834060 :0.0
|
|
$cd ~/C/who2
|
|
$gcc -o who1 who1.c
who1.c: In function ‘show_info’: who1.c:36: error: ‘utbofp’ undeclared (first use in this function) who1.c:36: error: (Each undeclared identifier is reported only once who1.c:36: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
who1.c:35: warning: conflicting types for ‘show_info’ who1.c:19: note: previous declaration of ‘show_info’ was here |
|
$man -k time |grep transform
asctime (3) - transform date and time to broken-down time or ASCII asctime_r (3) - transform date and time to broken-down time or ASCII ctime (3) - transform date and time to broken-down time or ASCII ctime_r (3) - transform date and time to broken-down time or ASCII gmtime (3) - transform date and time to broken-down time or ASCII gmtime_r (3) - transform date and time to broken-down time or ASCII localtime (3) - transform date and time to broken-down time or ASCII localtime_r (3) - transform date and time to broken-down time or ASCII mktime (3) - transform date and time to broken-down time or ASCII |
|
$man 3 ctime
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
who1.c: In function ‘showtime’: who1.c:51: error: parameter name omitted who1.c:54: error: ‘timeval’ undeclared (first use in this function) who1.c:54: error: (Each undeclared identifier is reported only once who1.c:54: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$gcc -o who1 who1.c
who1.c: In function ‘show_info’: who1.c:47: error: ‘upbufp’ undeclared (first use in this function) who1.c:47: error: (Each undeclared identifier is reported only once who1.c:47: error: for each function it appears in.) |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 1344826101 :0 ol14 pts/0 1344844891 :0.0 ol14 pts/2 1344827648 :0.0 ol14 pts/4 1344829989 :0.0 ol14 pts/6 1344830680 :0.0 ol14 pts/10 1344831878 :0.0 ol14 pts/12 1344831884 :0.0 ol14 pts/14 1344834060 :0.0 |
|
$gcc -o who1 who1.c
|
|
$./who1
ol14 tty7 Aug 13 08:48:0 ol14 pts/0 Aug 13 14:01:0.0 ol14 pts/2 Aug 13 09:14:0.0 ol14 pts/4 Aug 13 09:53:0.0 ol14 pts/6 Aug 13 10:04:0.0 ol14 pts/10 Aug 13 10:24:0.0 ol14 pts/12 Aug 13 10:24:0.0 ol14 pts/14 Aug 13 11:01:0.0 |
|
$./who1
ol14 tty7 Aug 13 08:48:0 ol14 pts/0 Aug 13 14:01:0.0 ol14 pts/2 Aug 13 09:14:0.0 ol14 pts/4 Aug 13 09:53:0.0 ol14 pts/6 Aug 13 10:04:0.0 ol14 pts/10 Aug 13 10:24:0.0 ol14 pts/12 Aug 13 10:24:0.0 ol14 pts/14 Aug 13 11:01:0.0 root pts/17 Aug 13 14:40:0.0 |
|
$cd ~/C/cp
|
|
$gcc -o cp1 cp.c
|
|
$./cp1
|
|
$./cp1
|
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:15: warning: comparison between pointer and integer |
|
$gcc -o cp1 cp.c
|
|
$gcc -o cp1 cp.c
cp.c: In function ‘main’: cp.c:21: warning: assignment makes integer from pointer without a cast |