command.c
// Separates the command name from the full command

Separates the command name from the full command
Separates the command name from the full command
const char* define_command_name (char command[256])
{
	memset(command_name,0,strlen(command_name)); 
	short int counter = 0;
	while (TRUE)
	{
		if (command[counter] == ' ' || command[counter] == '\0') break;
		command_name[counter] = command[counter];
		counter++;
	}
	return command_name;
}
const char * define_command_name ( char command [ 256 ] ) { memset ( command_name , 0 , strlen ( command_name ) ) ; short int counter = 0 ; while ( TRUE ) { if ( command [ counter ] == ' ' || command [ counter ] == ' \0 ' ) break ; command_name [ counter ] = command [ counter ] ; counter ++ ; } return command_name ; }
Separates the command name from the full command
Separates the command name from the full command
// Cleans any previous values
