Article View: es.comp.os.linux.programacion
Article #18115Re: Segmentation fault por falta de argumentos
From: NoP / Compiler
Date: Sun, 03 Oct 1999 00:00
Date: Sun, 03 Oct 1999 00:00
23 lines
1417 bytes
1417 bytes
Ozone wrote: > if( argc > 0 ) > c = atoi( argv[1] ); > > deber�a funcionar �no? no, argc como minimo siempre es 1 (el nombre del programa que ejecutas). Debes comprobar que argc > 1, no > 0. salu2. -- El �nico interfaz intuitivo es el pez�n, todos los dem�s son aprendidos. ------------------------------------------------------------ __ --- | NoP / Compiler - compiler@iname.com | /oo\ | |--------------------------------------------------------| (\/) | | POWERED BY - Linux RedHat 6.0 - Reg. User #74.821 | / __ \ | | NoP en IrcHispano | |\ /| | | http://www.ctv.es/USERS/sromero |_OO __ OO_| | http://linux-es.uio.no/Faq | -------------------------------------------------------------------
Technical Details
Message-ID:
<37F76991.73A20206@iname.com>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: NoP / Compiler <compiler@iname.com> Subject: Re: Segmentation fault por falta de argumentos Date: 1999/10/03 Message-ID: <37F76991.73A20206@iname.com> X-Deja-AN: 532311715 Content-Transfer-Encoding: 8bit References: <7t61lr$hdv$1@batcher.rediris.es> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Compiler Software Mime-Version: 1.0 Newsgroups: es.comp.os.linux.programacion