| getcwd | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
/* * This page documents the getcwd(2) system call, which * is not defined in any user-space header files; you should * use getcwd(3) defined in <unistd.h> instead in applications. */ long getcwd(char *buf, unsigned long size);
| DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
If the current absolute path name would require a buffer longer than size elements, -1 is returned, and errno is set to ERANGE; an application should check for this error, and allocate a larger buffer if necessary.
If buf is NULL, the behaviour of getcwd() is undefined.
| RETURN VALUE | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Note that this return value differs from the getcwd(3) library function, which returns NULL on failure and the address of buf on success.
| ERRORS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| CONFORMING TO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| Table des mots clés | Début | Suivant | Sommaire | Préc.page.lue | Accueil |