🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Diferencia entre funciones

#8330
From: LatinSuD
Date: Sat, 23 Nov 2002 19:22
14 lines
1956 bytes
> �Qu� ventaja tiene usar  fprintf(stdout, "El numero es %i", numero);
> frente  printf("El numero es %i",numero); ?

Considera la segunda como una simplificacion de la primera.

> Otra duda, �qu� diferencia existe entre usar la funcion fopen() y open()

open es una llamada al sistema, pertenece a la api del nucleo de linux
(estandar POSIX).
fopen es una funcion de la biblioteca de C estandar (estandar de ANSI C).

fopen es mas portable, va en todos los sistemas que admitan un compilador de
C ANSI. Como es logico fopen esta implementada haciendo llamadas a open.
Technical Details
Message-ID: <1038079334.923123@seux119>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!proxad.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail
References: <ar7t8h$fjb0l$1@ID-129971.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,2951cb5cbc1a5e69
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-11-23 11:22:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!proxad.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail
From: "LatinSuD" <spam@yourmother.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Diferencia entre funciones
Date: Sat, 23 Nov 2002 20:22:21 +0100
Organization: Supercable Andalucia, S.A.
Lines: 16
Message-ID: <1038079334.923123@seux119>
References: <ar7t8h$fjb0l$1@ID-129971.news.dfncis.de>
NNTP-Posting-Host: 212.79.128.146
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: titan.bt.es 1038078371 11028 212.79.128.146 (23 Nov 2002 19:06:11 GMT)
X-Complaints-To: abuse@bt.es
NNTP-Posting-Date: 23 Nov 2002 19:06:11 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Cache-Post-Path: seux119!unknown@cliente-217216179097.cm128.alanpa.supercable.es
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)