Top "Strcat" questions

A standard C function that appends a copy of the source string to the destination string.

error: function returns address of local variable

I'm beginner with C and I am learning on my own. I am creating the following function: char *foo(int …

c return strcpy strcat
How to find the length of argv[] in C

#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *…

c argv strlen strcat
strcat concat a char onto a string?

Using GDB, I find I get a segmentation fault when I attempt this operation: strcat(string,&currentChar); Given that …

c string char concatenation strcat
realloc(): invalid next size when reallocating to make space for strcat on char *

I am getting invalid memory error on following code: printf(" %s\n","FINE 5"); printf("%s LENGTH IS: %d\n","FINE 6",…

c string malloc realloc strcat
strcat implementation

I tried to implement the strcat by myself, and I found the strcat implementation from Wiki like this......but when …

c strcat
Matlab strcat function troubles with spaces

I'm trying to accomplish this: strcat('red ', 'yellow ', 'white ') I expected to see "red yellow white", however, …

matlab strcat
C char to string (passing char to strcat())

my problem is in convert a char to string i have to pass to strcat() a char to append to …

c string char strcat
strcat paste second string at beginning of first string

i use strcat() to connect two strings like: #include <string.h> #include <stdio.h> int main(…

c string strcat
How to copy or concatenate two char*

How do you concatenate or copy char* together? char* totalLine; const char* line1 = "hello"; const char* line2 = "world"; strcpy(totalLine,…

c++ strcpy strcat
adding space in strcat

I have two strings char str1[41] e char str2[41]. If I use strcat function to concatenate them I get an …

c string strcat