<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problem with GETARG in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-GETARG/m-p/836559#M55419</link>
    <description>No bug in GETARG. Use 0 as the first argument to return the name of the executable file on the command line.  The confusing thing is that the function NARGS() returns the number of command line arguments including the executable file.&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Nov 2002 11:31:32 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2002-11-19T11:31:32Z</dc:date>
    <item>
      <title>problem with GETARG</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-GETARG/m-p/836558#M55418</link>
      <description>In debug environment only two args are returned from the command line&lt;BR /&gt;t.exe "3""4" "5" 6 "7"&lt;BR /&gt;They are&lt;BR /&gt;t.exe&lt;BR /&gt;3"4 5 6 7&lt;BR /&gt;&lt;BR /&gt;now I would expect 5 arguments to be returned, namely&lt;BR /&gt;t.ext&lt;BR /&gt;3"4&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;&lt;BR /&gt;Is this an error in GETARG?&lt;BR /&gt;Fortran is&lt;BR /&gt;	  program t&lt;BR /&gt;	  parameter (ia=15)&lt;BR /&gt;	  character args(-2:ia)*20&lt;BR /&gt;	  integer*2 i,j&lt;BR /&gt;	  print *,'iargc,nargc',iargc(),nargs() &lt;BR /&gt;	  do 100 i=-2,ia&lt;BR /&gt;	    call getarg(i,args(i),j)&lt;BR /&gt;		print *,i,args(i),j,len(args(i))&lt;BR /&gt; 100  continue&lt;BR /&gt;      end&lt;BR /&gt;with screen o/p&lt;BR /&gt; iargc,nargc           1           2&lt;BR /&gt;     -2                          -1          20&lt;BR /&gt;     -1                          -1          20&lt;BR /&gt;      0 H:SgastlibCOMCHART     40          20&lt;BR /&gt;      1 3"4 5 6 7                 9          20&lt;BR /&gt;      2                          -1          20&lt;BR /&gt;      3                          -1          20&lt;BR /&gt;      4                          -1          20&lt;BR /&gt;      5                          -1          20&lt;BR /&gt;      6                          -1          20&lt;BR /&gt;      7                          -1          20&lt;BR /&gt;      8                          -1          20&lt;BR /&gt;      9                          -1          20&lt;BR /&gt;     10                          -1          20&lt;BR /&gt;     11                          -1          20&lt;BR /&gt;     12                          -1          20&lt;BR /&gt;     13                          -1          20&lt;BR /&gt;     14                          -1          20&lt;BR /&gt;     15                          -1          20&lt;BR /&gt;Press any key to continue&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Nov 2002 09:03:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-GETARG/m-p/836558#M55418</guid>
      <dc:creator>billaustralia</dc:creator>
      <dc:date>2002-11-07T09:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with GETARG</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-GETARG/m-p/836559#M55419</link>
      <description>No bug in GETARG. Use 0 as the first argument to return the name of the executable file on the command line.  The confusing thing is that the function NARGS() returns the number of command line arguments including the executable file.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2002 11:31:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-with-GETARG/m-p/836559#M55419</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2002-11-19T11:31:32Z</dc:date>
    </item>
  </channel>
</rss>

