Hello
Why will this lead to crash:
I just want to remove parenthesis at the begging and end..Code:char *tmp = "(some)(stupid)(string)\0"; char *p = tmp; int length = strlen(tmp); if ( (p[0] == '(') && (p[length-1] == ')') ) { p[length-1] = '\0'; p++; length--; printf("%s \n", p); }
Thanks for help