Assignment 1

Cerrado Publicado hace 7 años Pagado a la entrega
Cerrado Pagado a la entrega

Write a script [login to view URL] 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.

$ ./[login to view URL] -Ia/ -Ib/ test.c

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

$ ./[login to view URL] -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:

$ ./[login to view URL] <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:

$ ./[login to view URL] <C_file> -I.

$ ./[login to view URL] -I. <C_file>

$ ./[login to view URL] <C_file> -I. -Imydir/

$ ./[login to view URL] -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

Linux MySQL PHP Shell Script Arquitectura de software

Nº del proyecto: #12538863

Sobre el proyecto

8 propuestas Proyecto remoto Activo hace 7 años

8 freelancers están ofertando un promedio de $26 por este trabajo

kaloyan13

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

$30 USD en 1 día
(345 comentarios)
7.0
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 Más

$30 USD en 0 días
(25 comentarios)
5.1
zkutch

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

$25 USD en 1 día
(32 comentarios)
5.1
praveenh1810

A proposal has not yet been provided

$20 USD en 1 día
(6 comentarios)
2.5
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 en 1 día
(0 comentarios)
0.0