i have this code :
Code:
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h> /* ANSI C header file */
#include <syslog.h> /* for syslog() */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
/* Following shortens all the typecasts of pointer arguments: */
#define SA struct sockaddr
#define ListenQ 5
#define MAXLINE 4096 /* max text line length */
pid_t childpid;
int daemon_proc; /* set nonzero by daemon_init() */
/* this is global variable to define requiremnt parametrs for sockets */
int listenfd,connfd,portno,stringlen;
socklen_t clilen;
char buffer[1024];
struct sockaddr_in servaddr;
int n;
int sockfd,fd ; //for client socket
char fileName[128];
strncpy(fileName,"hello",128);
int CmpValue;
static void err_doit(int, int, const char *, va_list);
void str_fun(int Connfd);
void err_msg(const char *fmt, ...); /* to use this prototype in str_fun */
and this error occued with me i dont know why ???
myHeader.h:42:19: error: expected ‘)’ before string constant
**This code is compiled from file called myHeader.h ...