P
proxy foxy
Hi,
I understand from the solaris man page that strccpy compress the c
escape sequence from the source and copy the string to target.
I wrote the following program to realize the same. But the output
seams to be same. Please let me know in what way can I realize the
output:
$> gcc temp.c -o temp -lgen
int main ()
{
const char *s1="Hello\nWorld";
char *s2 = (char *)malloc (30);
printf ("s1[%d] : %s\n", strlen(s1), s1);
s2 = strccpy (s2, s1);
printf ("s2[%d] : %s\n", strlen(s2), s2);
}
I know this isn't a standard C function. Thought of seeking help
however
I understand from the solaris man page that strccpy compress the c
escape sequence from the source and copy the string to target.
I wrote the following program to realize the same. But the output
seams to be same. Please let me know in what way can I realize the
output:
$> gcc temp.c -o temp -lgen
int main ()
{
const char *s1="Hello\nWorld";
char *s2 = (char *)malloc (30);
printf ("s1[%d] : %s\n", strlen(s1), s1);
s2 = strccpy (s2, s1);
printf ("s2[%d] : %s\n", strlen(s2), s2);
}
I know this isn't a standard C function. Thought of seeking help
however