0

can i convert appointed string like argv[2] to another string array like text[11] ?

for example chang (argv[2]="hesham amer" ) to (text[0]="h" , text[1]="e" , text[2]="s" ......etc

23rd Sep 2019, 7:42 PM
Hesham Aamer
Hesham Aamer - avatar
3 odpowiedzi
+ 3
Typically argv has the char** type. So yes if you store its value in a non constant char array.
23rd Sep 2019, 7:51 PM
Manual
Manual - avatar
0
thanx all , I found function called (snprintf) and i used it .
24th Sep 2019, 2:23 AM
Hesham Aamer
Hesham Aamer - avatar