/*
- * context_replace.c -- add/replace an entry in the context/profile list
- *
- * This code is Copyright (c) 2002, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** context_replace.c -- add/replace an entry in the context/profile list
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#include <h/utils.h>
register struct node *np;
/*
- * If list is emtpy, allocate head of profile/context list.
- */
+ ** If list is emtpy, allocate head of profile/context list.
+ */
if (!m_defs) {
m_defs = (struct node *) mh_xmalloc (sizeof(*np));
}
/*
- * Search list of context/profile entries for
- * this key, and replace its value if found.
- */
+ ** Search list of context/profile entries for
+ ** this key, and replace its value if found.
+ */
for (np = m_defs;; np = np->n_next) {
if (!mh_strcasecmp (np->n_name, key)) {
if (strcmp (value, np->n_field)) {
}
/*
- * Else add this new entry at the end
- */
+ ** Else add this new entry at the end
+ */
np->n_next = (struct node *) mh_xmalloc (sizeof(*np));
np = np->n_next;