Is it possible to reproduce a virtual file system like the proc filesystem from linux?
It must stay in memeory and not moddify the contents of my hard drive, and also be mountable so that other...
Type: Posts; User: miutsu
Is it possible to reproduce a virtual file system like the proc filesystem from linux?
It must stay in memeory and not moddify the contents of my hard drive, and also be mountable so that other...
Thank you, that worked
I used:
fp = fopen("/dev/urandom", "r");
fread(&random, sizeof(int), 1, fp);
random = abs(random);
and it worked perfectly, but I dont have any man pages on fread...
Actually I realy want a description of how to get these values since I plan on using them in a program to provide randomness
And since I am using a pointer do I use fscanf to get data instead?
I want to get a value from /dev/urandom and use the value, then assign a new value from /dev/urandom to the same variable and use that new value. This will be done in an if inside a while-loop that...