well , i know java, but im new to c.
i came across this while learning c :
int my_function(const char *str1){
unsigned char c1;
c1 = (*(unsigned char *) str1);
}
well i suppose this code is casting from a string to the character value of it but what about the * symbols.
i now know a bit about pointers (i.e. int *ip where ip is a pointer to an integer type) but what's with this line of code :c1 = (*(unsigned char *) str1);
thx in advance :)