if (input.argc == 1 && input.argv[0].type == type)
{
add_mosfet(mosfets, input.argv[0].val.type);
- ft_printf("Index of added FET: %u\n", mosfets->size - 1);
+ ft_printf("Index of added FET:\n\t%u ", mosfets->size - 1);
}
else if (input.argc == 2 && input.argv[0].type == type && input.argv[1].type == num)
{
i = 0;
- ft_printf("Index of added FETs:\n\t");
+ ft_printf("Indeces of added FETs:\n\t");
while (i < input.argv[1].val.num)
{
ft_printf("%u ", mosfets->size);
static const char g_general_help_str[] = ""
"This is a FET_sim - simulator of FET (Field Effect Transistor) logic.\n"
"Version number: %s"
- "You can use the following commands:\n"
+ "You can use the following commands:\n\n"
"next [STEPS] \t\t- advances the simulation\n"
"draw [IND] \t\t- draws the state of the simulation\n"
"setnode IND STATE \t- sets the \"set_state\" of the node indexed by IND to STATE\n"
"addnode [STATE] [NUM] \t- adds new nodes\n"
"addfet TYPE [NUM] \t- adds new FETs\n"
- "bind NODE FET TERMINAL \t- binds node indexed by NODE to TERMINAL\n \
- \t\t\t of transistor indexed by FET\n"
+ "bind NODE FET TERMINAL \t- binds node indexed by NODE to TERMINAL of transistor indexed by FET\n"
"help [COMMAND] \t\t- shows this help or help for COMMAND\n"
"exit [...] \t\t- exits this program\n\n";