Thread Verständnisproblem #include "datei.h" (10 answers)
Opened by format_c at 2006-07-28 20:50

esskar
 2006-07-28 21:32
#11494 #11494
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
sieht es denn auch so aus

config.h
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __CONFIG_H__
#define __CONFIG_H__
struct configuration {
gchar hostname[1024];
gchar password[1024];
gchar bindDN[1024];
gshort version;
};

typedef struct configuration conf_t;

conf_t* read_configfile(gchar*);

#endif



config.c
Code: (dl )
1
2
3
4
5
6
7
8
9
#include "config.h"

conf_t* read_configfile(gchar* filename) {
FILE* fs = NULL;
gint line = 1;
conf_t* c;
/* haufen code */
return c;
}

View full thread Verständnisproblem #include "datei.h"