Recherche directory en C

d-bax -  
 pouet -
Bonjour,
y a t il une fonction en C qui permet de retourner la directory courante du fichier? merci

2 réponses

  1. jisisv Messages postés 3678 Statut Modérateur 936
     
    Hello,
    man 3 getcwd

    NAME
    getcwd, get_current_dir_name, getwd - Get current working directory

    SYNOPSIS
    #include <unistd.h>

    char *getcwd(char *buf, size_t size);
    char *get_current_dir_name(void);
    char *getwd(char *buf);

    ...
    ...

    Johan
    The software said "Requires Windows98, Win2000, or better,
    So I installed Unix.
    0
  2. pouet
     
    tu as oublie ca:
    The getcwd() function conforms to IEEE Std 1003.1-1990 (``POSIX'').

    --
    pouet
    0