next up previous
Next: delete_description() Up: Brain Volume I/O Handling Previous: setf_description()

print_description()  

Produce a printout of header information in a buffer



Synopsis


int
print_description(header *hdr, char *buffer, int N)


Description
The description is printed into the buffer string as a sequence of
lhs = rhs
or, if rhs="" just lhs \\

Lines are separated by the value 0a hex and the entire list is terminated by 0. Return non-zero if description does not fit within the buffersize of N

Usage

  char buf[2048];
  header *hdr;
  hdr = new_header();
  read_header("myvolume.vol", hdr);
  print_description(hdr, buf, 2048);
  print(STD, "Header contains the following : \n#s\n", buf);
  free_header(hdr);

Revision


1.0  29/10-96   Ulrik Kjems


Program listing






Ulrik Kjems
6/3/1998