Message from C, C++ discussions

December 2019

— Lol

— 

That's why u can do sth like this and still get away with it, it's stealing goods worth <= 900$ in Carlifornia.

— Welcome

— Thanks

— Hewwo guys :3

— Hey

— How is it possible to get a fancy rank?

— What?

— Well next to your name - Code warrior. Or what is this?

— I created a function "mulstr" that need to multiplay the string many times as wanted by the argument here is the function:

char* mulstr(char* str, int multi){
char* multipled;
for(int i = 2; i <= multi; i++){
strcat(multipled, str);
}
return multipled;
}

and i got into a error segmention fault and i do not know why

Message permanent page

— Prolly because you are using strcat which is accessing memory its not allowed to access and resulting in segfault

Message permanent page

— So what do i need to do to get this function to work