L
Larry
Hi, I have a problem with the following code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
typedef char* STRING;
BOOL saluto(PBYTE);
int main()
{
PBYTE marameo = new BYTE[10];
saluto(marameo);
printf("%s\n", marameo);
system("pause");
return 0;
}
BOOL saluto(PBYTE a)
{
STRING kk = "Hello World!";
a = (PBYTE)kk;
return true;
}
basically I call the function saluto() to change the content of /marameo/
but nothing happens....why? thanks
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
typedef char* STRING;
BOOL saluto(PBYTE);
int main()
{
PBYTE marameo = new BYTE[10];
saluto(marameo);
printf("%s\n", marameo);
system("pause");
return 0;
}
BOOL saluto(PBYTE a)
{
STRING kk = "Hello World!";
a = (PBYTE)kk;
return true;
}
basically I call the function saluto() to change the content of /marameo/
but nothing happens....why? thanks