- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
/*
* Returns 1 if filename has .zip extension.
*/
static int
str_zipext(char *name)
{
int i;
i = strlen(name) - 1;
if (i < 0 || name[i] != 'p' && name[i] != 'P') return 0;
i--;
if (i < 0 || name[i] != 'i' && name[i] != 'I') return 0;
i--;
if (i < 0 || name[i] != 'z' && name[i] != 'Z') return 0;
i--;
if (i < 0 || name[i] != '.') return 0;
i--;
if (i < 0) return 0;
return 1;
}
Steve_Brown 25.01.2018 17:51 # +7
Psionic 26.01.2018 19:09 # −1
cykablyad 25.01.2018 17:53 # +6
gost 26.01.2018 13:24 # +3
AnalPerOral 26.01.2018 14:31 # −1
Psionic 26.01.2018 19:07 # −1
subaru 26.01.2018 19:14 # 0
AnalPerOral 26.01.2018 19:26 # 0
AnalPerOral 26.01.2018 20:08 # 0
inho 26.01.2018 22:07 # 0
syoma 27.01.2018 01:31 # 0
Psionic 27.01.2018 10:07 # 0
subaru 27.01.2018 19:29 # 0
Psionic 27.01.2018 20:14 # 0
g0_1494089156986 29.01.2018 11:57 # 0