zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

is_path_valid.c
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2012-2015
4  * name : Francis Banyikwa
5  * email: mhogomchungu@gmail.com
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "includes.h"
21 #include <sys/stat.h>
22 
23 int zuluCryptPathIsValid( const char * path )
24 {
25  struct stat st ;
26  return stat( path,&st ) == 0 ;
27 }
28 
29 int zuluCryptPathIsNotValid( const char * path )
30 {
31  struct stat st ;
32  return stat( path,&st ) != 0 ;
33 }
34 
36 {
37  return zuluCryptPathIsNotValid( StringContent( path ) ) ;
38 }
zuluCryptPathIsNotValid_0
int zuluCryptPathIsNotValid_0(string_t path)
Definition: is_path_valid.c:35
zuluCryptPathIsNotValid
int zuluCryptPathIsNotValid(const char *path)
Definition: is_path_valid.c:29
zuluCryptPathIsValid
int zuluCryptPathIsValid(const char *path)
Definition: is_path_valid.c:23
StringContent
static const __inline__ char * StringContent(string_t st)
Definition: String.h:1011
StringType
Definition: String.c:49
includes.h