I'm trying to learn weather or not this is a correct way to due the above.Code:#include <stdio.h>
int main(int argc, char **argv)
{
char *name = NULL;
name = argv[1];
printf("Name is %s\n", name);
return 0;
}
Is this insecure?
If it is how can I make it correct?
I will not know the length of the input.
WOuld I have to malloc?
Thank you