A question to ask.
seq1 = "eeeeeeeeeeeeeeeeee";
seq2 = "dddddddddddddddddddd";
char a = '*';
strcat(*seq2, &a);
strcat(*seq1, seq2);
compilation
warning: passing arg 1 of `strcat' makes pointer from integer without a cast
thanks
A question to ask.
seq1 = "eeeeeeeeeeeeeeeeee";
seq2 = "dddddddddddddddddddd";
char a = '*';
strcat(*seq2, &a);
strcat(*seq1, seq2);
compilation
warning: passing arg 1 of `strcat' makes pointer from integer without a cast
thanks
What is your expected output?
#include <string.h>
int main()
{
char seq1 = "eeeeeeeeeeeeeeeeee";
char seq2 = "dddddddddddddddddddd";
const char a = "";
seq2=(char*)malloc(strlen(seq2)+1);
strcat(seq2,a);
printf("%s",seq2);
return 0;
}
#include <string.h>
int main()
{
char seq1 = "eeeeeeeeeeeeeeeeee";
char seq2 = "dddddddddddddddddddd";
const char a = "";
seq2=(char*)malloc(strlen(seq2)+1);
strcat(seq2,a);
printf("%s",seq2);
return 0;
}
Is it what you are looking for?
yes. Thanks