11.01.2015, 16:43
Basically, how do I reach and store last letter of a string?
For example, your name is John_Smith, how do I make the script detect "H" at the very end and store it?
I found and tried
new len = strlen(string);
printf("%c", string[len - 1]);
but it didn't seem to work.
For example, your name is John_Smith, how do I make the script detect "H" at the very end and store it?
I found and tried
new len = strlen(string);
printf("%c", string[len - 1]);
but it didn't seem to work.