FreeBSD/sys/boot/arm/at91/libat91/strcvt.c
/*
 * .KB_C_FN_DEFINITION_START
 * unsigned p_ASCIIToDec(char *)
 *  This global function set the unsigned value equal to the converted
 * decimal number passed as a string.  No error checking is performed; the
 * string must be valid decimal value, point at the start of string, and be
 * NULL-terminated.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
unsigned p_ASCIIToDec(char *)
This global function set the unsigned value equal to the converted
decimal number passed as a string.  No error checking is performed; the
string must be valid decimal value, point at the start of string, and be
NULL-terminated.
. KB_C_FN_DEFINITION_START unsigned p_ASCIIToDec ( char * ) This global function set the unsigned value equal to the converted decimal number passed as a string . No error checking is performed ; the string must be valid decimal value point at the start of string and be NULL - terminated .
unsigned
p_ASCIIToDec(const char *buf)
{
	unsigned v = 0;
	while (*buf) {
		v *= 10;
		v += (*buf++) - '0';
	}
	return (v);
}
unsigned p_ASCIIToDec ( const char * buf ) { unsigned v = 0 ; while ( * buf ) { v *= 10 ; v += ( * buf ++ ) - ' ' ; } return ( v ) ; }
.KB_C_FN_DEFINITION_START
 unsigned p_ASCIIToDec(char *)
  This global function set the unsigned value equal to the converted
 decimal number passed as a string.
. KB_C_FN_DEFINITION_START unsigned p_ASCIIToDec ( char * ) This global function set the unsigned value equal to the converted decimal number passed as a string .