GophHub - go4retro/tcpser/src/util.h


Raw File

    1	#ifndef UTIL_H
    2	#define UTIL_H
    3	
    4	#ifndef MAX
    5	#define MAX(a, b) ((a) > (b) ? (a) : (b))
    6	#endif
    7	
    8	
    9	
   10	int writePipe(int fd, char msg);
   11	int readPipe(int fd, unsigned char *buf, int len);
   12	int writeFile(char *name, int fd);
   13	void spawn_thread(void * thread, void *arg, char *name);
   14	
   15	#endif
   16	

Generated by GNU Enscript 1.6.6, and GophHub 1.3.