-
Notifications
You must be signed in to change notification settings - Fork 0
/
getpwd.c
22 lines (20 loc) · 1 KB
/
getpwd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* getpwd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bfrochot <bfrochot@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/16 13:26:35 by mleclair #+# #+# */
/* Updated: 2017/05/10 16:19:07 by bfrochot ### ########.fr */
/* */
/* ************************************************************************** */
#include "chell.h"
void getpwd(char *pwd)
{
pwd[0] = 'P';
pwd[1] = 'W';
pwd[2] = 'D';
pwd[3] = '=';
getcwd(pwd + 4, INPUT_SIZE);
}