tools/udpTools/udpClientEtherInfo.c
/*
 * Convert a token value to a string; use "fmt" if not found.
 */
Convert a token value to a string; use "fmt" if not found.
Convert a token value to a string ; use " fmt " if not found .
const char * tok2str(register const struct tok *lp, register const char *fmt, register u_int v) {
  static char buf[4][TOKBUFSIZE];
  static int idx = 0;
  char *ret;
  ret = buf[idx];
  idx = (idx+1) & 3;
  return tok2strbuf(lp, fmt, v, ret, sizeof(buf[0]));
}
const char * tok2str ( register const struct tok * lp , register const char * fmt , register u_int v ) { static char buf [ 4 ] [ TOKBUFSIZE ] ; static int idx = 0 ; char * ret ; ret = buf [ idx ] ; idx = ( idx + 1 ) & 3 ; return tok2strbuf ( lp , fmt , v , ret , sizeof ( buf [ 0 ] ) ) ; }
Convert a token value to a string; use "fmt" if not found.
Convert a token value to a string ; use " fmt " if not found .