🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #18491

Re: Proceso se inicia en background

#18491
From: *puntero_loco
Date: Sat, 04 Sep 1999 00:00
35 lines
2122 bytes
El Fri, 3 Sep 1999 14:42:14 +0200, Gorka Olaizola <gorka@news.hondarribia.org> escribi�:
|El d�a 1 Sep 1999 12:35:16 GMT, J.A. Gutierrez <spd@daphne.cps.unizar.es> 
|escribi�:
|-->int main(int argc, char **argv, char **envp)
|				   ^^^^^^^^^^^^
|�Que significa esto? normalmente programo en C pero es la primera vez que
|lo veo. �Es algo espec�fico de Unix? Cre�a que la funci�n main deb�a
|tener solo dos argumentos.
|

Directamente del info libc:

   In Unix systems you can define `main' a third way, using three
   arguments:

        int main (int ARGC, char *ARGV[], char *ENVP)

	   The first two arguments are just the same.  The third argument ENVP
	   gives the process's environment; it is the same as the value of
	   `environ'.  *Note Environment Variables::.  POSIX.1 does not allow
	   this
	   three-argument form, so to be portable it is best to write `main'
	   to
	   take two arguments, and use the value of `environ'.
	   
O sea, el entorno del proceso (supongo que las variables de entorno del shell,
yo tampoco lo hab�a usado nunca).

-- 
 /-----------------------------\
|      *puntero_loco            |  
|     Debian 2.1 Slink          |
|  jajsNOSPAM@retemail.es       |
| http://personal5.iddeo.es/jajs|
 \-----------------------------/
Technical Details
Message-ID: <q1ipq7.7n.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <qkqup7.j9.ln@JuAnJuX> <7qj6i4$9a9$3@celes.unizar.es> <slrn7svgh6.lu.gorka@conan.hondarribia.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,311b9b7a474eff74
X-Google-Attributes: gidf86c8,public
From: jajs@SPAMNOretemail.es (*puntero_loco)
Subject: Re: Proceso se inicia en background
Date: 1999/09/04
Message-ID: <q1ipq7.7n.ln@127.0.0.1>
X-Deja-AN: 521067409
Distribution: es
Content-Transfer-Encoding: 8bit
References: <qkqup7.j9.ln@JuAnJuX> <7qj6i4$9a9$3@celes.unizar.es> <slrn7svgh6.lu.gorka@conan.hondarribia.org>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmanager@rediris.es
X-Trace: batcher.rediris.es 936466964 12010 62.81.96.159 (4 Sep 1999 17:42:44 GMT)
Organization: Tarifa plana para todos YA!
Mime-Version: 1.0
User-Agent: slrn/0.9.5.3 (UNIX)
NNTP-Posting-Date: 4 Sep 1999 17:42:44 GMT
Newsgroups: es.comp.os.linux.programacion