Documentation de la bibliothèque MLV-2.0.2

MLV_path.h
Aller à la documentation de ce fichier.
1 /*
2  * This file is part of the MLV Library.
3  *
4  * Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
5  *
6  *
7  * This Library is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This Library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this Library. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
32 #ifndef __MLV__MLV_PATH_H__
33 #define __MLV__MLV_PATH_H__
34 
35 #include <stdarg.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
50 char* MLV_get_base_name( const char* path );
51 
62 char* MLV_get_directory_name( const char* path );
63 
70 int MLV_path_is_absolute( const char* path );
71 
78 int MLV_path_is_relative( const char* path );
79 
89 int MLV_path_exists( const char* path );
90 
97 int MLV_path_is_a_directory( const char* path );
98 
105 int MLV_path_is_a_file( const char* path );
106 
124 char* MLV_build_path( const char* first_element, ... );
125 
135 char* MLV_build_path_v( char** elements );
136 
144 char * MLV_get_current_directory( );
145 
157 const char * MLV_get_temporary_directory( );
158 
166 const char * MLV_get_home_directory( );
167 
168 #ifdef __cplusplus
169 }
170 #endif
171 
172 #endif
char * MLV_get_current_directory()
Détermine le répertoire courant.
char * MLV_get_base_name(const char *path)
Renvoie la chaîne de caractères après le dernier séparteur / dans un chemin donné en paramètre...
int MLV_path_exists(const char *path)
Teste si le chemin corespond au chemin d'un fichier ou dossier existant.
int MLV_path_is_a_directory(const char *path)
Vérifie si un chemin est associé à un répertoire.
char * MLV_build_path_v(char **elements)
Même chose que MLV_build_path.
int MLV_path_is_absolute(const char *path)
Teste si un chemin est absolu.
char * MLV_get_directory_name(const char *path)
Renvoie la chaîne de caractères s'étendant jusqu'au dernier séparateur / du chemin donné en paramètre...
const char * MLV_get_home_directory()
Détermine le répertoire personnel de l'utilisateur courant.
const char * MLV_get_temporary_directory()
Détermine le répertoire temporaire.
char * MLV_build_path(const char *first_element,...)
Construit en concaténant différents textes, une chaîne de caractères représentant un chemin dont les ...
int MLV_path_is_a_file(const char *path)
Vérifie si un chemin est associé à un fichier.
int MLV_path_is_relative(const char *path)
Teste si un chemin est relatif.