Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22045

Copy the adress of array B to an index in array A

$
0
0

Quick one... i want to copy the adress of an array 'B' to an index in array 'A', something like "strcat":

char *strcatme (char s1[] ,char s2[]){

    int i=0;

    while (s1[i]!='\0') i++;

    s1[i] = &s2;

    return s1;
}

but it doens't work, any tip for a noob? ;)


Viewing all articles
Browse latest Browse all 22045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>