Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
smartz993
I post too much
Reputation: 2
Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Sun Nov 01, 2009 10:24 am    Post subject:

What you would need to do is pass a reference to the array, so as your argument type ([] is invalid and can't be used) you can make it a pointer by prefixing the variable name with a *.

Code:

void func(char *array)
{
    array[0] = '\0';
}
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
Gavin
Review: Approve
Post reference:
ReviewPosted: Sun Mar 07, 2010 12:52 am

YOU'RE EPIC
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites