MiniDevil As beautiful as a shell
builtin_pwd.c File Reference

Implements pwd: prints current working directory. More...

#include <stdio.h>
#include "builtins.h"
#include "libft.h"
+ Include dependency graph for builtin_pwd.c:

Detailed Description

Implements pwd: prints current working directory.

Definition in file builtin_pwd.c.

Functions

int builtin_pwd (void)
 Implement the pwd command. More...
 

Function Documentation

◆ builtin_pwd()

int builtin_pwd ( void  )

Implement the pwd command.

Prints the current working directory to STDOUT

Returns
0 on success and 1 otherwise

Definition at line 24 of file builtin_pwd.c.

Referenced by exec_builtin().

+ Here is the caller graph for this function:

Go to the source code of this file.