Completed

C programming file structure in linux

We have implemented a prototype version of a C program, tree.c, for showing graphically on the standard output, the structure of files and folders inside a particular folder, specified as follows

#./tree folder path

Regarding the output of the program; in every line on the standard output is shown the name of a file or the name of a folder between angle brackets in such a way that all the files and folders inside a particular folder are written in the same column. At the beginning of each line we have written the tag FILE or FOLDER in order to check the performance of the Linux utility.

Testing the performance of the program for the current directory, where we have the particular structure of files and folders,

< . >

tree.c

tree

<tmp1>

[login to view URL]

<tmp11>

[login to view URL]

<tmp12>

<tmp2>

[login to view URL]

we realize that, in principle, we get the right structure but the tag associated to files that are not in the first level of the tree is not right. So;

1.- Firstly, find what’s wrong in the prototype. Add comments to your findings and save the file as oldtree.c and submit it.

2.- Secondly, submit a right version of the program.

Skills: C Programming, Linux, Software Architecture, UNIX

See more: linux mint file structure, explain linux file system, report on linux directory and file structure, file system tree in linux, linux structure diagram, linux file structure diagram, linux file system hierarchy diagram, linux file system structure pdf, please check xml playlist file structure, file integrity check linux, linux and c programming, linux c programming, c programming get inode for file, c programming in linux, C Programming Linux, c programming tree data structure, find a string in a file c programming, find string in file c programming, c++ oop data structure programming, linux c programming sockets

About the Employer:
( 0 reviews ) Edinburg, United States

Project ID: #18882829

Awarded to:

phadiman

I have done plenty of C and Linux projects. I can do this simple project. Please ping me so we can discuss and take this forward

$5 USD / hour
(3 Reviews)
2.1

6 freelancers are bidding on average $7/hour for this job

valor312

Hi I have rich experience on Linux, system administration, e-mailing, open source building including ALSA audio. I have deep understanding of Kernel programming, driver development, gdb debugging. Excellent co More

$8 USD / hour
(26 Reviews)
4.8
marekmosna

Hi, the condition for recursion doesn't make sense. You'll never reach more levels than the current one.

$8 USD / hour
(25 Reviews)
4.9
bluetiger12

hi, dear. i read your description. i have some experience of c/c++ programming in 7+ years. you can discuss your project with me more detail via chat. please contact me. best regards.

$6 USD / hour
(21 Reviews)
3.8
Joy963

1. Graduated from a well-known key university, and has been engaged in development work for 6 years. 2. Start with C, mainly do Linux platform software development work, and then turn to web back-end development, with More

$8 USD / hour
(0 Reviews)
0.0
diegoar57

I'm Linux Operating system Administrator and have many projects with C/C++ language. For example i use this language for teach Operating Systems on the University.

$5 USD / hour
(0 Reviews)
0.0