C programming for unix/windows.
Can you tell me how it is possible to truncate the www. from
www.anyname.com and print it on the end of another statement like:
webmaster@"anyname.com goes here.
In C you can manipulate strings, but you have to allocate memory to store
the strings. The following code fragment may help.
char *s = "www.anyname.com"
while( *s && *s != '.' )s++;
How do i do it so that it keeps the period? i meant to just truncate the
You have to be able to solve this. Really. You are kidding!
[ back to toc ]