Hi there,

As I said, the input string must be at least maxlen+1 (which is 16). You overwrite 
every string.

    Char a[15] = "123456789"; // should be Char a[16];
    Char b[15] = "987654321"; // Char b[16];
    Char c[15] = "741852963"; // Char c[16];

    PadStringWithChar(a,15,' '); // maxlen = 15
    PadStringWithChar(b,15,' ');
    PadStringWithChar(c,15,' ');

//when i put it through the debugger i found that:
//a ends up being "123456789                  "
//b ends up being "            "
//c ends up being ""

Also, you may want to read about global/local variables and scope of a variable.
If you want, you can do google search for "C tutorial" and read about declaring a 
variable ... I
Once in a while, I read a C tutorial again and always learn st there that I miss the 
last time. :)

tnn

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to