forked from Moondee/caut-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartouch.c
More file actions
58 lines (49 loc) · 792 Bytes
/
artouch.c
File metadata and controls
58 lines (49 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <stdio.h>
#include "caut.h"
int ar_touch (int t,int t1)
{
char *arname, *memname;
int arname_used = 0;
register int val;
int i=0;
int dg=0;
/* Make sure we know the modtime of the archive itself before we
touch the member, since this will change the archive itself. */
{
if(t)
{
arname_used = 1;
}
}
val = 1;
switch(t1)
{
case -1:
dg++;
break;
case -2:
dg++;
break;
case -3:
dg++;
break;
case 1:
dg++;
break;
case 0:
dg++;
val = 0;
break;
default:
dg++;
}
if(!arname) i++;
return val;
}
void testme()
{
int t,t1;
CAUT_INPUT(t);
CAUT_INPUT(t1);
ar_touch (t,t1);
}