#53464 - sparda - Thu Sep 08, 2005 4:40 pm
ok, if anyone can help me out with this, i would really appreciate it.
Can anyone tell me why this function works, even though it hasn't been defined, prototyped or anything? is it a keyword? i dont think it is because usually when i use keywords on my compiler(DEV-C++) they appear in bold, in this case it doesn't. I took this function from a tutorial at : http://www.webbesen.dk/gba/default.asp
function : memcpy( (u16 *)0x06014000, &ballData, sizeof(ballData) );
I've tested the function without any preprocessor directives or inclusions, just the MAIN function, AND IT STILL WORKS!! i dont understand. For example:
----------------------------------------------------------------------------------------
main()
{
int a,b,c;
memcpy(&a, &b, sizeof(c));
}
--------------------------------------------------------------------------------------
_________________
genius is 1% inspiration, 99% perspiration .
Can anyone tell me why this function works, even though it hasn't been defined, prototyped or anything? is it a keyword? i dont think it is because usually when i use keywords on my compiler(DEV-C++) they appear in bold, in this case it doesn't. I took this function from a tutorial at : http://www.webbesen.dk/gba/default.asp
function : memcpy( (u16 *)0x06014000, &ballData, sizeof(ballData) );
I've tested the function without any preprocessor directives or inclusions, just the MAIN function, AND IT STILL WORKS!! i dont understand. For example:
----------------------------------------------------------------------------------------
main()
{
int a,b,c;
memcpy(&a, &b, sizeof(c));
}
--------------------------------------------------------------------------------------
_________________
genius is 1% inspiration, 99% perspiration .