Lukket

Assignment 1

Write a script [url removed, login to view] in the ~ / tema4 / headers / which find absolute path of each file header included in a source file included C. If the header file is a symlink to be found by file path pointed to. The paths will be printed to stdout, one path per line. The script will receive path to a source file and can receive parameters (any) form -ipath having the same meaning as for gcc -i option to specify where the search for additional ways headers. (See man gcc / -I). After -i can follow a path absoulute or relative. Such data paths precedence over the default paths for headers in the system (it will look into them first). In terms of the routes passed by him, he has the first priority of the call path.

Default paths where you can find the usovm headers are in this order:

/usr/lib/gcc/i686-linux-gnu/5/include

/usr/local/include

/usr/lib/gcc/i686-linux-gnu/5/include-fixed

/usr/include/i386-linux-gnu

/usr/include

For example, whether a file named both existing test.h director / and directory b / and included the source file test.c.

$ ./[url removed, login to view] -Ia/ -Ib/ test.c

/path/to/dir/a/test.h

$ ./[url removed, login to view] -Ib/ test.c -I/path/to/dir/a/

/path/to/dir/b/test.h

The power of this task will be as follows:

[5p] The correct operation for simple file with headers that can only exist in the default paths or include sites form #include "header.h" (only the current directory). The script will be:

$ ./[url removed, login to view] <C_file>

[7p] The correct operation when -Ipath pass arguments of the form. The headers will not be included in subdirectories, that will not be in the file C lines form #include <dir / header.h> .Exemple of runs available:

$ ./[url removed, login to view] <C_file> -I.

$ ./[url removed, login to view] -I. <C_file>

$ ./[url removed, login to view] <C_file> -I. -Imydir/

$ ./[url removed, login to view] -I. <C_file> -Imydir -Iyourdir/

[8p] Operation correct and complete script with arguments -Ipath shape and form included with headers #include <dir / header.h>

it has few tasks to do one of the tasks where this which i told, for more information you can contact me

Færdigheder: Linux, MySQL, PHP, Shell Script, Software Arkitektur

Se mere: android restaurant order example, trailing pending order example, pending order example, software write mq4, software write chip epson, useful software write book, software write web specs, software write edid, software write websites idea, software write book images, software write books, computer work order example, software write protection, free software write book, pizza order example, software write book, software write technical manual

Om arbejdsgiveren:
( 5 bedømmelser ) kabul, Afghanistan

Projekt-ID: #12538863

9 freelancere byder i gennemsnit $26 for dette job

kaloyan13

Hello, I can do your script for an hours. Can start working in the morning. Its midnight here. Thanks...

$30 USD på 1 dag
(195 bedømmelser)
6.5
yogeshssanwal

I am Yogesh sanwal, 5+ years experienced inwebsite and e-commerce development using PHP/MySQL. Take a look to my last work: https://www.solomonbrothers.com http://charleskrypell.com/ http://ounati.com/ http://ww Mere

$25 USD på 1 dag
(101 bedømmelser)
5.9
$24 USD på 1 dag
(29 bedømmelser)
4.9
cracken

Hi, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements Mere

$30 USD in 0 dage
(17 bedømmelser)
4.6
zkutch

Hello. More 20 years programming experience. I need more details to set real time and price. Regards. -------------------------------------------------------------------------------------------------------------- Mere

$25 USD på 1 dag
(23 bedømmelser)
4.7
praveenh1810

A proposal has not yet been provided

$20 USD på 1 dag
(4 bedømmelser)
2.3
$25 USD in 2 dage
(2 bedømmelser)
2.4
ezain501

My team has experience of 3 years in web and desktop application development.We have our hands dirty in working with various programming languages and we have mastered in java,C#,C and C++.We design and build websites Mere

$30 USD in 2 dage
(0 bedømmelser)
0.0
Charankumar123

Your project needs writing a shell script for extracting the absolute paths. I can do that for you within your budget limits.

$25 USD på 1 dag
(0 bedømmelser)
0.0