From 3010301bd7d20cd14b1eda9bd24da172c3924c89 Mon Sep 17 00:00:00 2001 From: nasrlol Date: Wed, 12 Feb 2025 23:02:07 +0100 Subject: working on the main function of the code trying to get the lines to correctly dislay everything, still having a little of trouble though --- current_directory.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 current_directory.c (limited to 'current_directory.c') 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 -#include -#include - -int main() -{ - char cwd[PATH_MAX]; - if (getcwd(cwd, sizeof(cwd)) != NULL) - printf("%s", cwd); - else { - perror("getcwd() error"); - return 1; - } - return 0; -} - - - - - -- cgit v1.2.3-70-g09d2