FreeBSD/sys/boot/arm/at91/bootiic/env_vars.c
/*
 * .KB_C_FN_DEFINITION_START
 * void SetBootCommand(int index, char *command)
 *  This global function replaces the specified index with the string residing
 * at command.  Execute this function with a NULL string to clear the
 * associated command index.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
void SetBootCommand(int index, char *command)
This global function replaces the specified index with the string residing
at command.  Execute this function with a NULL string to clear the
associated command index.
. KB_C_FN_DEFINITION_START void SetBootCommand ( int index char * command ) This global function replaces the specified index with the string residing at command . Execute this function with a NULL string to clear the associated command index .
void
SetBootCommand(int index, char *command)
{
	int 	i;
	if ((unsigned)index < MAX_BOOT_COMMANDS) {
		p_memset(boot_commands[index], 0, MAX_INPUT_SIZE);
		if (!command)
			return ;
		for (i = 0; i < MAX_INPUT_SIZE; ++i) {
			boot_commands[index][i] = command[i];
			if (!(boot_commands[index][i]))
				return;
		}
	}
}
void SetBootCommand ( int index , char * command ) { int i ; if ( ( unsigned ) index < MAX_BOOT_COMMANDS ) { p_memset ( boot_commands [ index ] , 0 , MAX_INPUT_SIZE ) ; if ( ! command ) return ; for ( i = 0 ; i < MAX_INPUT_SIZE ; ++ i ) { boot_commands [ index ] [ i ] = command [ i ] ; if ( ! ( boot_commands [ index ] [ i ] ) ) return ; } } }
.KB_C_FN_DEFINITION_START
 void SetBootCommand(int index, char *command)
  This global function replaces the specified index with the string residing
 at command.
. KB_C_FN_DEFINITION_START void SetBootCommand ( int index char * command ) This global function replaces the specified index with the string residing at command .