Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME IV. Les librairies internes

2. La librairie scr4o

2.18 Fonctions de gestion de directory

2.18.3 SCR_fullpath (file s_dirfp.c:31)

Syntax

char *SCR_fullpath(name, res)
char *name, *res;

Description

Full Path : retourne le nom complet d'un fichier à partir d'un nom relatif. name contient le nom du fichier, res le résultat.

En cas d'erreur, res est vide et la variable DOS errno indique l'origine du problème (Drive not ready, etc).

Valeur retournée

pointeur vers le nom complet du fichier (res) ou NULL en cas d'erreur.

Exemple

    Soit le directory courant sur c: \usr
sur a: \

SCR_fullpath("toto", res) c:\usr\toto
SCR_fullpath(".\\toto", res) c:\usr\toto
SCR_fullpath("./toto", res) c:\usr\toto
SCR_fullpath("../toto", res) c:\toto
SCR_fullpath("\\toto", res) c:\toto
SCR_fullpath("a:toto", res) a:\toto
...

Voir également

SCR_dir(), SCR_getcwd(), SCR_relpath()

File s_dirfp.c

char *SCR_fullpath(name, res)

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be