NETADDR
is either an IPv4 address or an IPv6 addressNETADDR Addr;
if(net_addr_from_str(&Addr, "127.0.0.1:8303"))
{
/* error parsing the address */
}
m_NetClient[1].Connect(&m_ServerAddress);
if (DoButton_CheckBox(&g_Config.m_ClReplaceVanillaSkins, Localize("Kitty skins (DDCat)"), g_Config.m_ClReplaceVanillaSkins, &ReplaceVanillaSkins))
(edited)src/game
) and some are more engine-related (in src/engine
)if(g_Config.m_ClVanillaSkinPrefix[0])
str_find
in src/base/system.h does what you needsscanf
usage (since it does not detect unmatched input past the last format specifier).