#include <string.h>
void *memfrob(void *s, size_t n);
#include <stdio.h>
#include <string.h>
int main()
{
char my[] = "This is my secret^_^";
printf ("you can see it: %s\n", my);
memfrob(my, strlen(my));
printf ("is it my secret? : %s\n", my);
printf ("restore it.......\n");
memfrob(my, strlen(my));
printf ("you can see it again: %s\n", my);
return 0;
}
./memfrob
you can see it: This is my secret^_^
is it my secret? : ~BCY
CY
GS
YOIXO^tut
restore it.......
you can see it again: This is my secret^_^
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |