Search found 2 matches

by jrh
Fri Feb 24, 2017 11:32 am
Forum: NetBurner Software
Topic: sscanf misbehaving when converting string to IPADDR4
Replies: 3
Views: 3900

Re: sscanf misbehaving when converting string to IPADDR4

Yup that works great. Thanks! When I didn't see a constructor that took a char * I didn't think to look for a misc method elsewhere.
Still don't know why sscanf yields zeros (the code runs fine on another compiler), but it looks like I don't need it anymore.
by jrh
Fri Feb 24, 2017 9:11 am
Forum: NetBurner Software
Topic: sscanf misbehaving when converting string to IPADDR4
Replies: 3
Views: 3900

sscanf misbehaving when converting string to IPADDR4

Hi all,

I'm using a MOD5282 and running NBEclipse 2.8.2. I've written the following method to convert a string to an IPADDR4 object:

bool IP_From_String(char *ip_string, IPADDR4 *ip)
{
iprintf("Entered IP_From_String. String is: %s\n", ip_string);
// Check to make sure the format is correct ...