Hello everyone, I've tried this now:
int main(){
char *string1="<dt>TESTE</dt>";
char *string2 = malloc(55*sizeof(int));
int ini,fin;
ini = searchString(string1,"<dt>");
Type: Posts; User: h3now
Hello everyone, I've tried this now:
int main(){
char *string1="<dt>TESTE</dt>";
char *string2 = malloc(55*sizeof(int));
int ini,fin;
ini = searchString(string1,"<dt>");
That may sound a little noob but how do I put a '\0' at the end of a string? I've tried strcat(string2,"\0") but the '\0' goes to the end of that long string that appears on the prompt.
Hey everyone, I'm kinda stuck in this: The purpose of the program is to crop a string between two given keywords. Example: if the keywords are "<dt>" and "</dt>" and the string is "<dt>TESTE</dt>"...
NVM, just did it, I was able to correctly compile my test code...
You're completely right, and that's my approach to most problems. But since I need such a small task to be done (relatively...
Okay, I downloaded it, but I'm completely clueless from here on... how do I configure Code::Blocks so it can be able to compile my test program right? (I'm not sure if this question belongs to this...
I studied C this year in college and I learned a fair amount of things, that go from basics (I/O, conditional structures...) to some more advanced topics (like graphs, neural networks...). Now I've...