🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Programas externos en codigo C (pregunta novato)

#6114
From: Alberto Giménez
Date: Thu, 31 Jul 2003 23:26
30 lines
2158 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Wed, 30 Jul 2003 16:28:44 -0700, Enrique Terrazas escribi�:
> Saludos.
> 
> Se pueden incrustar programas externos en el codigo de un programa en C ?

Como bien te han dicho puedes usar fork + la familia de funciones exec*.

Tambi�n puedes usar funciones para habilitar el uso de plugins desde tu
programa, esto es, a�adir m�dulos al vuelo para "insertar" nuevas
funciones.

Saludos

- -- 
Alberto Gim�nez, SimManiac en el IRC
http://www.geocities.com/simmaniac_es
GNU/Linux Debian Woody 3.0 GnuPG ID: 0x3BAABDE1
Linux registered user #290801
"640k deber�an ser suficientes para todo el mundo." (Bill Gates)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/KaXD0keCtzuqveERAlCHAJ9VUPYXEQ4LNcZEN0iXihrTS2YtkQCeKgRF
/aiuTXn8g0RpKjD4gYxCiXQ=
=Oya1
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <3k8cgb.fm.ln@teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!frodo.antakira.com!news.antakira.com!antonio.escomposlinux.org!escomposlinux.org!teleline.es!nobody
References: <bg9klq$r8o$1@negre.neozero.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,d0d1c80bf7704121
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-08-01 13:51:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!frodo.antakira.com!news.antakira.com!antonio.escomposlinux.org!escomposlinux.org!teleline.es!nobody
From: Alberto Giménez <algibe@teleline.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Programas externos en codigo C (pregunta novato)
Date: Fri, 1 Aug 2003 01:26:59 +0200
Organization: Ecolnet
Lines: 30
Message-ID: <3k8cgb.fm.ln@teleline.es>
References: <bg9klq$r8o$1@negre.neozero.net>
Reply-To: algibe@teleline.es
NNTP-Posting-Host: 4-bar2-x24.libre.retevision.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: antonio.escomposlinux.org 1059771083 26190 62.82.138.4 (1 Aug 2003 20:51:23 GMT)
X-Complaints-To: antonio@escomposlinux.org
NNTP-Posting-Date: Fri, 1 Aug 2003 20:51:23 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)