character pointer array to character array in native C

  • Thread starter Thread starter Tech Aspirant
  • Start date Start date
T

Tech Aspirant

Guest
Hello,

How can I convert character pointer array to character array in native C ? I want to copy data from 'b' to 'a'.

char *a[2];
char b[3] = {0};
memset(b, 0, sizeof(b));
a[0]= "A";
a[1] = "B";

Continue reading...
 
Back
Top