these are the errors i get
[student@localhost tcp]$ gcc client.c diewitherror.c handeltcp.c
gcc: handeltcp.c: No such file or directory
[student@localhost tcp]$ gcc client.c diewitherror.c handeltcp.c
gcc: handeltcp.c: No such file or directory
[student@localhost tcp]$ gcc client.c diewitherror.c handeltcpclient.c
handeltcpclient.c: In function ‘handeltcpclient’:
handeltcpclient.c:28: error: incompatible types in assignment
handeltcpclient.c:35: error: invalid operands to binary &
handeltcpclient.c:37: warning: passing argument 1 of ‘strncpy’ from incompatible pointer type
handeltcpclient.c:37: warning: passing argument 2 of ‘strncpy’ makes pointer from integer without a cast
handeltcpclient.c:37: error: too few arguments to function ‘strncpy’
handeltcpclient.c:38: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast
handeltcpclient.c:41: warning: passing argument 1 of ‘sprintf’ from incompatible pointer type
handeltcpclient.c:46: error: invalid operands to binary &
handeltcpclient.c:46: error: ‘messageSize’ undeclared (first use in this function)
handeltcpclient.c:46: error: (Each undeclared identifier is reported only once
handeltcpclient.c:46: error: for each function it appears in.)
handeltcpclient.c:51: warning: assignment makes pointer from integer without a cast
handeltcpclient.c:54: warning: ‘return’ with a value, in function returning void
handeltcpclient.c:59: error: ‘file’ undeclared (first use in this function)
handeltcpclient.c:71: warning: ‘return’ with a value, in function returning void
handeltcpclient.c:75: error: incompatible types in assignment
handeltcpclient.c:77: warning: passing argument 1 of ‘strncpy’ from incompatible pointer type
handeltcpclient.c:77: warning: passing argument 2 of ‘strncpy’ makes pointer from integer without a cast
handeltcpclient.c:77: error: too few arguments to function ‘strncpy’
handeltcpclient.c:78: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast
handeltcpclient.c:81: warning: passing argument 1 of ‘sprintf’ from incompatible pointer type
handeltcpclient.c:85: warning: passing argument 1 of ‘strncpy’ from incompatible pointer type
handeltcpclient.c:85: warning: passing argument 2 of ‘strncpy’ makes pointer from integer without a cast
handeltcpclient.c:85: error: too few arguments to function ‘strncpy’
handeltcpclient.c:86: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast
handeltcpclient.c:92: error: ‘sucess’ undeclared (first use in this function)
handeltcpclient.c:98: error: expected expression before ‘if’
handeltcpclient.c:139: error: expected declaration or statement at end of input
handeltcpclient.c:139: error: expected declaration or statement at end of input
handeltcpclient.c:139: error: expected declaration or statement at end of input
handeltcpclient.c:139: error: expected declaration or statement at end of input
handeltcpclient.c:139: error: expected declaration or statement at end of input
|