Is there a way to have a bit bucket pointer? (C/C++)
- by Crazy Chenz
Is there a way to have a bit bucket pointer?
A lot of IO (specifically input related) system calls return data to a buffer of a specific size. Is there a trick or way to make a sorta bit bucket pointer, so I can accept any amount of data that will be thrown away. Doing something like "char tmp[INT_MAX]" is crazy. The behavior I am looking for is something like /dev/null, only in a pointer world.
Not to hopeful on this.... just curious.
Thanks,
Chenz
UPDATE: Perhaps mmap-ing /dev/null. Forgot about that when I asked the question.