diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-17 23:33:56 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-17 23:33:56 +1300 |
commit | cff2863f6b986490c5868bb177918666432c9f4c (patch) | |
tree | 779a9b12410883feee57b42cc287692893473808 /pwd.c | |
parent | Free memory in ls(1) too (diff) | |
download | tunics-cff2863f6b986490c5868bb177918666432c9f4c.tar.gz tunics-cff2863f6b986490c5868bb177918666432c9f4c.zip |
Quick and utterly wrong pwd(1) implementation
Diffstat (limited to 'pwd.c')
-rw-r--r-- | pwd.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#include "pwd.h" + +int main(void) +{ + char buf[1024]; + fprintf(stdout, "%s\n", getcwd(buf, 1024)); + exit(EXIT_SUCCESS); +} + |