/[xlog]/xlog/src/hamlib-utils.c
ViewVC logotype

Diff of /xlog/src/hamlib-utils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by pa4tu, Fri Jul 25 17:06:29 2003 UTC revision 1.13 by pa4tu, Sun Aug 17 10:25:42 2003 UTC
# Line 525  sethamlibwidgets (gint status) Line 525  sethamlibwidgets (gint status)
525          }          }
526  }  }
527    
528    gint set_conf(RIG *my_rig, gchar *conf_parms)
529    {
530      gchar *p, *q, *n;
531      gint ret;
532    
533      p = conf_parms;
534      while (p && *p != '\0')
535        {
536          /* FIXME: left hand value of = cannot be null */
537          q = strchr(p, '=');
538          if (q) *q++ = '\0';
539          n = strchr(q, ',');
540          if (n) *n++ = '\0';
541    
542          ret = rig_set_conf(my_rig, rig_token_lookup(my_rig, p), q);
543          if (ret != RIG_OK) return ret;
544          p = n;
545        }
546        return RIG_OK;
547    }
548  #endif  #endif

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26