Using strncat with char array element in C

Posted by user260223 on Stack Overflow See other posts from Stack Overflow or by user260223
Published on 2010-05-15T11:49:22Z Indexed on 2010/05/15 11:54 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

Hi.. I have get error with the following code and i can't figure it out.

   char name[]="tolgahan"
   char result[100]="";
   strncat(result,name[1],1);

I guess, i need to convert name[1] to string format but i don't now how can i do that.

Please help me. Best regards.

© Stack Overflow or respective owner

Related posts about c

    Related posts about string