Home Segments Index Top Previous Next

512: Mainline

Now, you have a character pointer to a chunk of memory big enough to hold the characters in the input buffer. Next, you must assign the member variable of the appropriate trade object to that character pointer:

trade_pointers[limit] -> description 
  = (char*) malloc (strlen (input_buffer) + 1)