summaryrefslogtreecommitdiff
path: root/current_directory.c
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2025-02-12 23:02:07 +0100
committernasrlol <nsrddyn@gmail.com>2025-02-12 23:02:07 +0100
commit3010301bd7d20cd14b1eda9bd24da172c3924c89 (patch)
tree7fb33cd85ece474c2b6cc0bf8276bb8bbe3d1783 /current_directory.c
parent87fb4d9ea774bc7fd69076947925fac01e68f60b (diff)
working on the main function of the code trying to get the lines to correctly dislay everything, still having a little of trouble though
Diffstat (limited to 'current_directory.c')
-rw-r--r--current_directory.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/current_directory.c b/current_directory.c
deleted file mode 100644
index a9eec1b..0000000
--- a/current_directory.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * =====================================================================================
- *
- * Filename: current_directory.c
- *
- *
- * Version: 1.0
- * Created: 02/10/2025 10:26:51 AM
- * Revision: none
- * Compiler: gcc
- *
- * Author: YOUR NAME (),
- * Organization:
- *
- * =====================================================================================
- */
-
-#include <unistd.h>
-#include <stdio.h>
-#include <linux/limits.h>
-
-int main()
-{
- char cwd[PATH_MAX];
- if (getcwd(cwd, sizeof(cwd)) != NULL)
- printf("%s", cwd);
- else {
- perror("getcwd() error");
- return 1;
- }
- return 0;
-}
-
-
-
-
-