neutrinordp: Allow fixed keyboard lauout information to be sent to remote. #1933

This commit is contained in:
TOMATO-ONE
2021-07-20 01:08:45 +09:00
parent e0a482fbfc
commit e3ffad77ca
5 changed files with 113 additions and 0 deletions
+24
View File
@@ -407,6 +407,30 @@ g_atoi(const char *str)
return atoi(str);
}
/*****************************************************************************/
/* As g_atoi() but allows for hexadecimal too */
int
g_atoix(const char *str)
{
int base = 10;
if (str == NULL)
{
str = "0";
}
while (isspace(*str))
{
++str;
}
if (*str == '0' && tolower(*(str + 1)) == 'x')
{
str += 2;
base = 16;
}
return strtol(str, NULL, base);
}
/*****************************************************************************/
int
g_htoi(char *str)