Recherche directory en C

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

2 réponses

  • Votes
  • Date
  • Date décroissante
  1. Modérateur
    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.
    1. tu as oublie ca:
      The getcwd() function conforms to IEEE Std 1003.1-1990 (``POSIX'').

      --
      pouet