I'm trying to compile the following minimal C code on ubuntu 10.10:
#include <sys/capability.h>
void main(void)
{
cap_t cap;
cap = cap_get_proc();
}
with gcc -lcap test.c which gives me the following error:
/tmp/ccCQFyXS.…
I have a large array in C (not C++ if that makes a difference). I want to initialize all members of the same value.
I could swear I once knew a simple way to do this. I could use memset() …