Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
959 leency 1
 
2
{
3
4
 
5
unsigned	*n;
6
unsigned	num_of_file;
7
unsigned	*t;
8
unsigned	type_of_file;
9
int		i;
10
11
 
12
k70.p04 = 0;
13
k70.p08 = 0;
14
k70.p12 = 2*1024*1024; // 2 MB
15
k70.p16 = malloc(2*1024*1024);
16
k70.p20 = 0;
17
k70.p21 = dir;
18
19
 
20
	{
21
	free(k70.p16);
22
	return FALSE;
23
	}
24
25
 
26
num_of_file = *n; // число файлов в каталоге
27
28
 
29
	{
30
	printf ("  %s", k70.p16+32+40+(264+40)*i);
31
	t = k70.p16+32+(264+40)*i;
32
	type_of_file = *t;
33
	if ( (0x10 == (type_of_file&0x10)) || (8 == (type_of_file&8)) )
34
		printf ("/");
35
	printf ("\n\r");
36
	}
37
38
 
39
return TRUE;
40
}
41