|
|
Re: char* to char*
[Re: jcl]
#112945
02/21/07 20:06
02/21/07 20:06
|
Joined: Jul 2006
Posts: 783 London, UK
sheefo
OP
User
|
OP
User
Joined: Jul 2006
Posts: 783
London, UK
|
Thanks jcl, I could never turn down advice from you. I will take a look through every C reference/tutorial, starting with the ones your recomended.
I do have experience with complicated programming, but only using a scripting language called Ruby. Its syntax is so different than C. Variables can be defined using "$" at the beginning of the name for a global variable, "@" for a local, "@@" for a class (unique to Ruby) and nothing for a instant variable. It doesn't use "{" and "}", instead it uses only the keyword 'end'.
Anyway, I will shut up now. But I had this problem with plugins, until I found 'strcpy' and that was the solution. Since it is not avaliable in Lite-C I cannot proceed.
Can it be added using the API stuff I hear so much about? If so... can you show me how?
|
|
|
Re: char* to char*
[Re: TWO]
#112947
02/21/07 21:58
02/21/07 21:58
|
Joined: Apr 2006
Posts: 136 San Francisco
Tor
Member
|
Member
Joined: Apr 2006
Posts: 136
San Francisco
|
Whenever you get garbage characters it usually means that the pointer was not initialized only contains null/garbage data (usually that weird looking i thing).
Make sure you set the pointer to something firsT!
"Towlie, you're the worst character ever."
I know...
|
|
|
Re: char* to char*
[Re: Tor]
#112948
03/02/07 20:30
03/02/07 20:30
|
Joined: Jul 2006
Posts: 783 London, UK
sheefo
OP
User
|
OP
User
Joined: Jul 2006
Posts: 783
London, UK
|
I did it! I hope it helps someone. You can add more like this: Code:
#include <string.h> void* __cdecl strcpy(char*, char*); void* __cdecl strcat(char*, char*);
|
|
|
|