2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
10 int main (int argc
, char ** argv
)
15 len
= strlen (argv
[0])-2;
18 str
= malloc (len
+ 1); /* MLK */
20 strncpy (str
, argv
[0], len
);
23 printf ("str=%s\n", str
);
25 str
= strdup (argv
[0]); /* MLK */
27 printf ("str=%s\n", str
);
29 str
= strdup ("hallo"); /* MLK */
31 printf ("str=%s\n", str
);
33 str
= strdup (str
); /* MLK */
35 printf ("str=%s\n", str
);