Bonjour,
je suis débutante en C et rencontre l'erreur suivante :
type of formal parameter 1 is incomplete
mon code est :
dans le fichier .h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| typedef unsigned char u_char;
typedef char* caddr_t;
typedef struct {
u_char sin_len;
u_char sin_family;
int sin_port;
struct {
int s_addr;
}sin_addr;
} sockaddr_in;
void inet_ntoa_b
(
struct in_addr inetAddress, /* inet address */
char* pString /* where to return ASCII string */
); |
et dans le fichier .c la ligne de code :
inet_ntoa_b (clientAddr.sin_addr, inetAddr);
me crée l'erreur ci-dessus.
Est ce que quelqu'un pourrait m'aider?
Partager