🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Duda de funcion en Linux

#11957
From: Ángel Suárez Rivero
Date: Tue, 04 Sep 2001 20:15
55 lines
2778 bytes
Raul wrote:
> 
>         Otra pregunta y perdona pero es que soy nuevo en programacion en linux.
> �Como veo las funciones y su delaracion de las librerias.h?.

less /...donde_sea.../include/...donde_sea.../cabezera.h ( no librer�a
)

por ejemplo para la math:

$ locate math.h

/usr/i486-linuxlibc1/include/g++/std/cmath.h
/usr/i486-linuxlibc1/include/m68k/__math.h
/usr/i486-linuxlibc1/include/math.h
/usr/include/gck/gckmath.h
/usr/include/libgimp/gimpmath.h
/usr/include/math.h
/usr/include/tgmath.h
/usr/lib/bcc/include/math.h
/usr/lib/checker/i686-pc-linux-gnu/include/__math.h
/usr/share/gimp/1.1/devel-docs/html/libgimp/libgimp-gimpmath.html

$ less /usr/include/math.h (este es en mas t�pico)

hacemos una buzqueda dentro del fichero: /#include < y en contramos:

#include <features.h>
#include <bits/huge_val.h>
#include <bits/mathdef.h>
#include <bits/mathcalls.h>

cat /usr/include/feactures.h /usr/include/bits/huge_val.h
/usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h | less

le damos a Enter y buscamos dentro una funci�n que ya conozcamos:
/acos
Humm parece que para declarar una funci�n se usa la constante
__MATHCALL pues modificamos un poco la l�nea anterior:

cat /usr/include/feactures.h /usr/include/bits/huge_val.h
/usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h | grep
__MATHCALL| less

Bingo, una lista de declaraciones. :)

despues man funci�n y listo, hay muchas funciones que no tienen p�gina
man, pero las mas usadas si suelen terla.

Saludos

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| @NGEL   srangel@teleline.es   potato 2.y pico |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <3B95364D.F671C54@teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212-170-180-123.uc.nombres.ttd.ES!not-for-mail
References: <3B93E9A9.8C67945@grupobbva.net> <3B93FE70.1A9BA1A9@teleline.es> <3B940053.4A13B0EC@grupobbva.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,6e84682e8b664c4b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-04 13:13:41 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212-170-180-123.uc.nombres.ttd.ES!not-for-mail
From: Ángel Suárez Rivero <srangel@teleline.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Duda de funcion en Linux
Date: Tue, 04 Sep 2001 21:15:09 +0100
Lines: 55
Message-ID: <3B95364D.F671C54@teleline.es>
References: <3B93E9A9.8C67945@grupobbva.net> <3B93FE70.1A9BA1A9@teleline.es> <3B940053.4A13B0EC@grupobbva.net>
NNTP-Posting-Host: 212-170-180-123.uc.nombres.ttd.es (212.170.180.123)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 999634419 5404128 212.170.180.123 (16 [79850])
X-Orig-Path: 127.0.0.1!nobody
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.4 i686)
X-Accept-Language: en