# README-lib
# File last changed: Jul 2, 2024

The *.c files and ncidlib.h file contain the following functions:

    logmsg.[ch]:
        void logMsg(int level, const char * fmt, ...)

    strdate.[ch]:
        char *strdate(int format)

    dopid.[ch]:
        int doPID(pid_t *pid, char *pidfile)

    hexdump.[ch]:
        void hexdump(void *ptr, int buflen)

    conf.[ch]:
        int doConf()
        char *getWord(char *nameptr, char *inptr, char *wdptr, int lc);
        int findWord(char *wdptr),
        int findSend()char *wdptr;
        void configError(char *file, int lc, char *word, char *mesg);

    safesend.[ch]:
        safeSend() and its pieces for delivery of messages on TCP streams
        void  initQueuedMsg(int maxconnect);
        void  safeSend(int pos, const char * msg );
        void  disconnectClient(int pos);
        void  QueuedMsg_begin_connect(int pos);
        void  handle_incoming_message(int pos, char * um, int length);
        void  send_blocked(int pos);

    ncid_poll.[ch]:
        (for Mac OS only)
        int poll(struct pollfd * pfds, unsigned int npfds, int ptimeout);

    strmatch.[ch]
        int strmatch(const char * string, const char * value, void * regexp);

    hex2uchar.[ch]
        void hex2uchar(const char * buf, unsigned char * ucbuf);

    checksum.[ch]
        unsigned char checksum (unsigned char *ptr, size_t size);


