Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/06/2010, 16:55
gonzo13
 
Fecha de Ingreso: agosto-2008
Mensajes: 240
Antigüedad: 15 años, 8 meses
Puntos: 6
Respuesta: Como tratar archivos externos?

Hola, todo lo que te comento margarito04 se corresponde con Funciones de Biblioteca. Dependiendo de las funciones que quieras usar, tendrás que incluir unas librerías u otras. Puedes saber que librería necesitas con el comando:

Código:
man "funcion_biblioteca"
Por ejemplo, para saber que librería incluir para poder usar la funcion "fopen":

Código:
man fopen
Y la salida es:

Código:
NAME
       fopen, fdopen, freopen - stream open functions

SYNOPSIS
       #include <stdio.h>          [Librería a incluir]

       FILE *fopen(const char *path, const char *mode);

       FILE *fdopen(int fd, const char *mode);

       FILE *freopen(const char *path, const char *mode, FILE *stream);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       fdopen(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

DESCRIPTION
       The fopen() function opens the file whose name is the string pointed to
       by path and associates a stream with it.

       The argument mode points to a string beginning with one of the...
Saludos,
gonzo