This question already has answers here: Closed 11 years ago. Possible Duplicate: Why does MSVC++ consider “std::strcat” to be “unsafe&rdqu开发者_Python百科o;? (C++)
Using GDB, I find I get a segmentation fault when I attempt this operation: strcat(string,¤tChar);
This question already has answers here: How do I concatenate const/literal strings in C? (17 answers) Closed 4 years ago.
I ne开发者_JAVA技巧ed to include an C function in my C++ program, when compiling the Code with g++ I get the following warning:
The second call to strcat here is generating a segmentation fault, why? #include <unistd.h> #include<stdio.h>
Hey guys I\'m trying to figure how pointers are returned by strcat(), so I tried implementing my own strcat() to see how it works. The following is my code for mystrcat(), which works like the real st
I have some code that does the following: while(some condition) { char *line[WORDLEN]; //do stuff to line, including strcat(line, \"words\")
I\'m having a bit of a problem with strcat and segmentation faults. The error is as follows: Program received signal EXC_BAD_ACCESS, Could not access memory.
I tried to implement the strcat by myself, and I found the strcat implementation from Wiki like this......but when I use it, there is segmentation fault.
my problem is in convert a char to string i have to pass to strcat() a char to append to 开发者_如何学JAVAa string, how can i do?