-=> Quoting Cameron Clark to Wade Carpenter <=-
CC> use array's of characters and not pointers. It sound like an
CC> allocation error to me.
So, arrays are like when you define something as, for example:
char *array[5] = {"One","Two","Three","Four","Five"}, right? I only ask
because I have no idea what these things mean. I did, however finally
figure out what is meant by 'pointer' !
CC> The directory name might require it to be ended with '\' - this is
CC> nasty to test for.
Yeah, I tried for a while to figure that out and gave up in the end!!
Insted, I just included a brief statement: 'Don't add trailing backslash!'
Well, works enough for me.
CC> if it ends in '\' don't add one
CC> if it doesn't end in '\'
CC> add one only if the string is not empty
Well, thanks for the time and the tips.. I'm {Slowly} on my way
to comprehension of the language! TTYL, Wade
... Which came first? (a)Fire, (b)The wheel, (c)300 baud.
---
---------------
* Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265)
|