staticint decide_set_font(void)
{
int font_select_value;
int rase_enter_key;
//printf("Input your select:\n");
while (true)
{
scanf("%d", &font_select_value);
rase_enter_key = getc(stdin);
if (rase_enter_key == '\n')
{
rase_enter_key = '\0';
putc(rase_enter_key, stderr);
}
//font_select_value = floor(font_select_value);
if (font_select_value >= 1 && font_select_value <= 4 && font_select_value != 0 && font_select_value != '\n')
return font_select_value;
//fprintf(stderr, "Input a valid value:\n");
printf("Input a valid value:\n");
}
return 1;
}
void set_big_small(void)
{
/*char cmd[6] = {0};
char value[] =
printf("Input set big and small command.\nExmple: \"big 5\" + Enter Key is enlarge to 5.\n\"small 5\" + Enter Key is reduce to 5.\nYour select is:\n",);*/
printf("The function developing.\n");
}
{
int font_select_value;
int rase_enter_key;
//printf("Input your select:\n");
while (true)
{
scanf("%d", &font_select_value);
rase_enter_key = getc(stdin);
if (rase_enter_key == '\n')
{
rase_enter_key = '\0';
putc(rase_enter_key, stderr);
}
//font_select_value = floor(font_select_value);
if (font_select_value >= 1 && font_select_value <= 4 && font_select_value != 0 && font_select_value != '\n')
return font_select_value;
//fprintf(stderr, "Input a valid value:\n");
printf("Input a valid value:\n");
}
return 1;
}
void set_big_small(void)
{
/*char cmd[6] = {0};
char value[] =
printf("Input set big and small command.\nExmple: \"big 5\" + Enter Key is enlarge to 5.\n\"small 5\" + Enter Key is reduce to 5.\nYour select is:\n",);*/
printf("The function developing.\n");
}
