7 #include <sys/socket.h>
8 #include <netinet/in.h>
19 /* stripped version of applib.c for codemux */
21 char *GetNextLine(FILE *file);
22 int WordCount(char *buf);
23 char *GetField(const char *start, int whichField);
24 char *GetWord(const char *start, int whichWord);
25 int DoesDotlessSuffixMatch(char *start, int len, char *suffix);
26 int CreatePrivateAcceptSocket(int portNum, int nonBlocking);
27 char *StrdupLower(const char *orig);
28 void StrcpyLower(char *dest, const char *src);
30 /* nice exit support */
31 void NiceExitBack(int val, char *reason, char *file, int line);
32 #define NiceExit(val, reason) NiceExitBack(val, reason, __FILE__, __LINE__)
35 /* allocate stack memory to copy "src" to "dest" in lower cases */
36 #define LOCAL_STR_DUP_LOWER(dest, src) \
37 { dest = alloca(strlen(src) + 1); \
38 StrcpyLower(dest, src); \
41 /* allocate stack memory to copy "src" to "dest" */
42 #define LOCAL_STR_DUP(dest, src) \
43 { dest = alloca(strlen(src) + 1); \