everest% CC bsmain1.C bstring.C bsmain1.C: bstring.C: everest% everest% a.out Enter string #1: foobar Enter string #2: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz *** BString::debug() this=0xffffffadf0 str=0x10015a20 str=foobar len=6 bufsize=7 *** *** BString::debug() this=0xffffffae00 str=0x10015ca0 str=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz len=78 bufsize=80 *** string 1: foobar string 2: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz everest% everest% a.out Enter string #1: smiley faces Enter string #2: *** BString::debug() this=0xffffffadf0 str=0x10015aa8 str=smiley faces len=12 bufsize=13 *** *** BString::debug() this=0xffffffae00 str=0x0 str= len=0 bufsize=0 *** string 1: smiley faces string 2: everest% everest% a.out Enter string #1: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz Enter string #2: abcdefghijklmnopqrstuvwxyz *** BString::debug() this=0xffffffadf0 str=0x10015da0 str=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu len=255 bufsize=320 *** *** BString::debug() this=0xffffffae00 str=0x10015ef0 str=abcdefghijklmnopqrstuvwxyz len=26 bufsize=27 *** string 1: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu string 2: abcdefghijklmnopqrstuvwxyz everest%