I have got a source code in which there is a function that calculates week checksum. I need to pass a char array, let say, 'hello world'. How can I do that?? I tried some ways, e.g.:
char textArr[] = 'hello world'
but I get 'undefined reference' error.
unsigned int rs_calc_weak_sum(void const *p, int len) {
unsigned char const *buf = (unsigned char const *) p;
}
Please help me on this.