src/config/config.cc
/*
 * Writes an element from the dictionary to the given file.
 *
 * Assumes the given file is open and non-null.
 * Assumes the given element is non-null and valid.
 */
Writes an element from the dictionary to the given file.
Assumes the given file is open and non-null.
Assumes the given element is non-null and valid.
Writes an element from the dictionary to the given file . Assumes the given file is open and non - null . Assumes the given element is non - null and valid .
void Config::WriteElem(DictElem *elem, FILE *config) {
  fwrite(elem->key, 1, strlen(elem->key), config);
  fwrite("=", 1, 1, config);
  fwrite(elem->val, 1, strlen(elem->val), config);
  fwrite("\n", 1, 1, config);
  return;
}
void Config :: WriteElem ( DictElem * elem , FILE * config ) { fwrite ( elem -> key , 1 , strlen ( elem -> key ) , config ) ; fwrite ( " " , 1 , 1 , config ) ; fwrite ( elem -> val , 1 , strlen ( elem -> val ) , config ) ; fwrite ( " \n " , 1 , 1 , config ) ; return ; }
Writes an element from the dictionary to the given file.
Writes an element from the dictionary to the given file .