Article View: es.comp.os.linux.programacion
Article #18114Re: Segmentation fault por falta de argumentos
From: Barce
Date: Sun, 03 Oct 1999 00:00
Date: Sun, 03 Oct 1999 00:00
6 lines
789 bytes
789 bytes
Argc siempre ser� 1 si no pasas par�metros ya que el propio nombre del ejecutable se cuenta como si fuera un par�metro. Por lo tanto argv[0] contiene el nombre del ejecutable y argv[1] no existir� si no pasas par�metros al programa.
Technical Details
Message-ID:
<37F68F15.2744CEE9@retemail.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7t61lr$hdv$1@batcher.rediris.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,93ab638515be0660 X-Google-Attributes: gidf86c8,public From: Barce <barce@retemail.es> Subject: Re: Segmentation fault por falta de argumentos Date: 1999/10/03 Message-ID: <37F68F15.2744CEE9@retemail.es> X-Deja-AN: 532138559 Content-Transfer-Encoding: 8bit References: <7t61lr$hdv$1@batcher.rediris.es> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Iddeo - Retevisi�n Mime-Version: 1.0 Newsgroups: es.comp.os.linux.programacion