R
Ram
Hi,
is it possible to implement strsep without modifying original buffer?
for Ex:
buf = malloc(30);
if (buf == NULL) {
DEBUG_PRINT("\nCould'nt allocate memory block @ %s:%d",
__FILE__, __LINE__);
return -1;
}
elem = strsep(&buf, ",");
I don't want disturb original 'buf' in this case..
please help me!
Thanks in advance,
Rammohan
is it possible to implement strsep without modifying original buffer?
for Ex:
buf = malloc(30);
if (buf == NULL) {
DEBUG_PRINT("\nCould'nt allocate memory block @ %s:%d",
__FILE__, __LINE__);
return -1;
}
elem = strsep(&buf, ",");
I don't want disturb original 'buf' in this case..
please help me!
Thanks in advance,
Rammohan