Where is the part that you have this pointer point to memory you can write to? value += int(passkey[x]);
Can you describe in words what you believe this is doing? num_value = atol (value);
Since atol requires a null-terminated string, where do you null terminate the "string"?
Dave,
Thankyou for replying, as i stated i am new to this, and am not really sure of what i am doing.
I dont understand the first question you asked. Im confused, can you explain, and i might be able to help you.
Second - well, this while block takes each individual character of the string, and converts it to ASCII. The part that states:
value += int(passkey[x]);
I believe that this takes the selected character of the string, in ASCII form, and adds it to the string. eg. say the string was = "12658" and the value of the character i was adding was 10, the string would = "1265810"
Am i completly wron in thinking this??? Please help.
Thanks for you help, dave!