FreeBSD/sys/fs/nfsserver/nfs_nfsdsubs.c
/*
 * Translate an ASCII hex digit to it's binary value. Return -1 if the
 * char isn't a hex digit.
 */
Translate an ASCII hex digit to it's binary value. Return -1 if the
char isn't a hex digit.
Translate an ASCII hex digit to it ' s binary value . Return - 1 if the char isn ' t a hex digit .
static char
nfsrv_hexdigit(char c, int *err)
{
	*err = 0;
	if (c >= '0' && c <= '9')
		return (c - '0');
	if (c >= 'a' && c <= 'f')
		return (c - 'a' + ((char)10));
	if (c >= 'A' && c <= 'F')
		return (c - 'A' + ((char)10));
	*err = 1;
	return (1);	
}
static char nfsrv_hexdigit ( char c , int * err ) { * err = 0 ; if ( c >= ' ' && c <= ' ' ) return ( c - ' ' ) ; if ( c >= ' ' && c <= ' ' ) return ( c - ' ' + ( ( char ) 10 ) ) ; if ( c >= ' ' && c <= ' ' ) return ( c - ' ' + ( ( char ) 10 ) ) ; * err = 1 ; return ( 1 ) ; }
Translate an ASCII hex digit to it's binary value.
Translate an ASCII hex digit to it ' s binary value .
/* Not valid ! */ /* BOGUS */