Name: Anonymous 2008-01-22 18:24
How would I make my program check if it was root?
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
printf("I am%s root.\n", strcmp(*argv, "root") ? " not" : "");
return 0;
}