X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=process.tex;h=1aa521ab536d540cba5e6521c40607b80c989cee;hp=aa75ea30a8bc4f42c122fd9f715ebfb181e99e6e;hb=5d621249af8897e27fc0a842a33e7a7ef3b9c2ca;hpb=e2a6afe2653d1b051226abbcf8d398b3787c4d41 diff --git a/process.tex b/process.tex index aa75ea3..1aa521a 100644 --- a/process.tex +++ b/process.tex @@ -1,6 +1,6 @@ %% process.tex %% -%% Copyright (C) 2000-2009 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2010 Simone Piccardi. Permission is granted to %% copy, distribute and/or modify this document under the terms of the GNU Free %% Documentation License, Version 1.1 or any later version published by the %% Free Software Foundation; with the Invariant Sections being "Un preambolo", @@ -1270,7 +1270,34 @@ cui si effettua la scansione. \begin{figure}[htb] \centering - \includegraphics[width=13cm]{img/argv_argc} +% \includegraphics[width=13cm]{img/argv_argc} +% \includegraphics[width=13cm]{img/argv_argc} + \begin{tikzpicture}[>=stealth] + \draw (0.5,2.5) rectangle (3.5,3); + \draw (2,2.75) node {\texttt{argc = 5}}; + \draw (5,2.5) rectangle (8,3); + \draw (6.5,2.75) node {\texttt{argv[0]}}; + \draw [->] (8,2.75) -- (9,2.75); + \draw (9,2.75) node [anchor=west] {\texttt{"touch"}}; + \draw (5,2) rectangle (8,2.5); + \draw (6.5,2.25) node {\texttt{argv[1]}}; + \draw [->] (8,2.25) -- (9,2.25); + \draw (9,2.25) node [anchor=west] {\texttt{"-r"}}; + \draw (5,1.5) rectangle (8,2); + \draw (6.5,1.75) node {\texttt{argv[2]}}; + \draw [->] (8,1.75) -- (9,1.75); + \draw (9,1.75) node [anchor=west] {\texttt{"riferimento.txt"}}; + \draw (5,1.0) rectangle (8,1.5); + \draw (6.5,1.25) node {\texttt{argv[3]}}; + \draw [->] (8,1.25) -- (9,1.25); + \draw (9,1.25) node [anchor=west] {\texttt{"-m"}}; + \draw (5,0.5) rectangle (8,1.0); + \draw (6.5,0.75) node {\texttt{argv[4]}}; + \draw [->] (8,0.75) -- (9,0.75); + \draw (9,0.75) node [anchor=west] {\texttt{"questofile.txt"}}; + \draw (4.25,3.5) node{\texttt{"touch -r riferimento.txt -m questofile.txt"}}; + + \end{tikzpicture} \caption{Esempio dei valori di \param{argv} e \param{argc} generati nella scansione di una riga di comando.} \label{fig:proc_argv_argc}