FreeBSD/sys/boot/arm/at91/bootspi/loader_prompt.c
/*
 * .KB_C_FN_DEFINITION_START
 * int StringToCommand(char *cPtr)
 *  This private function converts a command string to a command code.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
int StringToCommand(char *cPtr)
This private function converts a command string to a command code.
. KB_C_FN_DEFINITION_START int StringToCommand ( char * cPtr ) This private function converts a command string to a command code .
static int
StringToCommand(char *cPtr)
{
	int	i;
	for (i = 0; CommandTable[i].command != COMMAND_FINAL_FLAG; ++i)
		if (!strcmp(CommandTable[i].c_string, cPtr))
			return (CommandTable[i].command);
	return (COMMAND_INVALID);
}
static int StringToCommand ( char * cPtr ) { int i ; for ( i = 0 ; CommandTable [ i ] . command != COMMAND_FINAL_FLAG ; ++ i ) if ( ! strcmp ( CommandTable [ i ] . c_string , cPtr ) ) return ( CommandTable [ i ] . command ) ; return ( COMMAND_INVALID ) ; }
.KB_C_FN_DEFINITION_START
 int StringToCommand(char *cPtr)
  This private function converts a command string to a command code.
. KB_C_FN_DEFINITION_START int StringToCommand ( char * cPtr ) This private function converts a command string to a command code .