i want to delete the last char in a string, and return it to main.
it is my program but doesn't work!
pls help!
#include <stdio.h>
void ClrR(char**);
void main(void)
{
char* a;
a="1234";
ClrR(&a);
}
void ClrR(char** str)
{
int pos;
pos = strlen(*str)-1;
*(*str+pos)='/0';
}