Reading a router configuration file

view story

http://www.unix.com – Hello C specialists, I'm trying to write a program to read out a binary configuration file produced by a router. But the output of Name and Value is cryptic. What's going wrong? The structure of the binary file is very simple: struct nvram_tuple { char *name; char *value; struct nvram_tuple *next; }; Please see attached file with detailed used headers and sources. Here the code: Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bcmnvram.h" #include "typedefs.h"  int main(int argc, char *argv[]) {   (HowTos)