   syntax error before '' token [C]
  My source below was working till I changed a function in a seperate header file. Now when I try to compile the app it throws the following errors.in function 'userExit'syntax error before '{' tokenparameter 'listenSocket' is initializedparameter 'result' is initializedparametere 'send_buffer' is initializedparametere 'clientConnected' is initializedparametere 'recv_client' is initializedparametere 'error_SCOCS' is initializedparametere 'error_STS' is initializedparametere 'lineNumber' is initializedparametere 'lineNumber2' is initializedsyntax error before "socketListenStart"heres the top start of our app[source lang=c]#include <stdio.h>#include <stdlib.h>#include <windows.h>#include <winbase.h>#include <winsock2.h>#include <ws2tcpip.h>#include <conio.h>#include <time.h>#include "../../library/fileOperations.h"#include "../../library/adminOperations.h"#include "../../library/sockOperations.h"int main(int argc, char **argv){/**********VAR START PHASE*****************************************************/  WSADATA info_WSADATA;  SOCKET listenSocket = INVALID_SOCKET;  SOCKET clientSocket[MAXSOCKETS];  struct addrinfo *result = NULL;  struct sockaddr_in serverAddress;  struct fd_set clientSocketSet[MAXSOCKETS];  struct fd_set listenSocketSet;  struct userProfile clientProfile[MAXSOCKETS];  char send_buffer[MAX_BUFFER] = "Username Please?";  char recv_buffer[MAX_BUFFER];  char user_recv_buffer[MAX_BUFFER];  char hold[10];  int clientConnected = 0;   int recv_client = 0;  int error_SCOCS = 0;  int error_STS = 0;  int lineNumber = 0;  int lineNumber2 = 0;/**********VAR  END PHASE******************************************************//*EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE    START  MAIN WHILEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE*/  socketListenStart(&info_WSADATA,&listenSocket,&serverAddress); Any one got any ideas?   
  We will probably need to see these files:Quote:#include "../../library/fileOperations.h"#include "../../library/adminOperations.h"#include "../../library/sockOperations.h"My guess: one of these files contains a function called "userExit" that has the incorrect number of opening or closing curly braces.   ;[source lang=c]int userExit(struct userProfile *clientProfile_PTR,int *clientConnected_PTR,SOCKET *clientSocket_PTR,int closingConnection)  {   closesocket(clientSocket_PTR[closingConnection]);    WSACleanup();    while(closingConnection < *clientConnected) {   clientProfile_PTR[closingConnection]->userName = clientProfile_PTR[closingConnection+1]->userName;   clientProfile_PTR[closingConnection]->lineInConnection = clientProfile_PTR[closingConnection+1]->lineInConnection;   clientProfile_PTR[closingConnection]->userColor = clientProfile_PTR[closingConnection+1]->userColor;   clientSocket_PTR[closingConnection] = clientSocket_PTR[closingConnection+1];   closingConnection++; }    *clientConnected_PTR = clientConnected_PTR - 1;    return(1);  }I looked at it a few times, am referencing the clientProfile_PTR wrongly?   ;*clientConnected_PTR = clientConnected_PTR - 1;This line seems wrong (you are assigning a pointer to a struct). Try replacing it with:*clientConnected_PTR = *(clientConnected_PTR - 1);;  Fixed, but its still giving the same issue, with the exact same errors.   ;  I narrowed it down to the sockOperations.h fileif I blank out userExit prototype in the h file all the errors go away except for no prototype error.[source lang=c]/*==============================================================================-------------------- Socket Operations Header----------------------==============================================================================*/#ifndef SOCKOPERATIONS_H#define SOCKOPERATIONS_H#define MAXSOCKETS 5#define MAX_BUFFER 50#define READTRUE 130#define USEREXIT 449int socketListenStart(WSADATA *info_WSADATA_PTR,SOCKET *listenSocket_PTR,struct sockaddr_in* serverAddress_PTR);int selectCheckOnListenSocket(struct fd_set *listenSocketSet_PTR,SOCKET *listenSocket_PTR,SOCKET *clientSocket_PTR,int *clientConnected_PTR,char *connectionMessage,struct userProfile *clientProfile_PTR);int fdSetSetup(struct fd_set *SocketSet_PTR,SOCKET *Socket_PTR);int selectCheckOnConnectedSocket(struct fd_set *clientSocketSet_PTR,SOCKET *clientSocket_PTR,char *recv_buffer_PTR,int *clientConnected_PTR,struct userProfile *clientProfile_PTR);int sendToSocket(struct fd_set *clientSocketSet_PTR,SOCKET *clientSocket_PTR,char *recv_buffer_PTR,int *clientConnected_PTR,struct userProfile *clientProfile_PTR);int userExit(struct userProfile *clientProfile_PTR,int *clientConnected_PTR,SOCKET *clientSocket_PTR,int closingConnection)#endif  /*------------------------------------------------------------------------------*/Theres the source for the h file. Im still working on it, let me know.   ;  LOL :P userExit is missing the ; at the end. Cool I'll see where that gets me, thanks to those who were working with me.   ;while(closingConnection < *clientConnected)Where does 'clientConnected' came from? I don't see it declared anywhere.   ;  Yeah i saw that before to it should be, while(closingConnection < *clientConnected_PTR)Thanks!   