Is it possible to add smth. like that to getIpConfig()?
Code:
fd = fioOpen("mc0:/SYS-CONF/IPCONFIG.DAT", O_RDONLY);
if (fd < 0)
{
char path[MAX_PATH];
strcpy(path, LaunchElfDir);
strcat(path, "IPCONFIG.DAT");
fd = fioOpen(path, O_RDONLY);
}
if (fd >= 0)
{
bzero(buf, IPCONF_MAX_LEN);
len = fioRead(fd, buf, IPCONF_MAX_LEN - 1); //Save a byte for termination
fioClose(fd);
}