summaryrefslogtreecommitdiff
path: root/libstd/getcwd.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-13 01:16:51 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-13 01:16:51 -0700
commit3036bad34f204e9348610ef5194ba7b29933aaf7 (patch)
tree35142014776e5904050963910086a0b5829076b9 /libstd/getcwd.myr
parentd3672bb4f2ef344e41ff7fd3cb8c801a8edc6513 (diff)
downloadmc-3036bad34f204e9348610ef5194ba7b29933aaf7.tar.gz
Remove debug print.
Diffstat (limited to 'libstd/getcwd.myr')
-rw-r--r--libstd/getcwd.myr8
1 files changed, 3 insertions, 5 deletions
diff --git a/libstd/getcwd.myr b/libstd/getcwd.myr
index 3992bf6..406c6a4 100644
--- a/libstd/getcwd.myr
+++ b/libstd/getcwd.myr
@@ -1,9 +1,8 @@
-use "syswrap.use"
-use "errno.use"
+
use "alloc.use"
+use "errno.use"
use "extremum.use"
-use "fmt.use"
-
+use "syswrap.use"
pkg std =
const getcwd : (-> byte[:])
;;
@@ -15,7 +14,6 @@ const getcwd = {
while true
buf = std.slalloc(len)
n = bgetcwd(buf)
- std.put("got %i, buf = %s\n", n, buf[:n])
if n >= 0
/* n is the length of the nul terminated c string */
-> buf[:n-1]