Return-Path: william@bourbon.usc.edu Delivery-Date: Sat Oct 25 19:34:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9Q2YVMP024889 for ; Sat, 25 Oct 2008 19:34:31 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m9Q2j2kV006865 for ; Sat, 25 Oct 2008 19:45:02 -0700 Message-Id: <200810260245.m9Q2j2kV006865@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS 551 Date: Sat, 25 Oct 2008 19:45:02 -0700 From: Bill Cheng Someone wrote: > How can i access the HomeDir provided in the .ini file so as to create a > "init_neighbor_list" file under the current node directory ? Well, let's say that you have successfully parsed the startup configuration file and have read the value of HomeDir into a variable: char home_dir[256]. You also have a variable: char init_neighbor_list_path[256]. You can then do: snprintf(init_neighbor_list_path, sizeof(init_neighbor_list_path), "%s/init_neighbor_list", home_dir); -- Bill Cheng // bill.cheng@usc.edu