/***********************************************
* released under (E) licensing ... *
* (E) RULES AND REGULATIONS *
* permission to use/rewrite/add : granted *
* permission to trojan/steal : denied *
* permission to use illegally : denied *
* permission to use on /dev/urandom : denied *
***********************************************/
/* contact el8@press.co.jp for full license */
/* code copyrighted by ~el8 -- don't infringe! */
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
int main(int argc, char *(*(argv)))
{
struct passwd *juser;
if ((juser = getpwuid(getuid())) == NULL) {
perror("getpwuid()");
exit(-1);
}
printf("\033[2m\xf0 \033[1m%s \033[0;36m",juser->pw_name);
while(*++argv) {
printf("%s ",*argv);
}
puts("\033[m");
}
syntax highlighted by Code2HTML, v. 0.9.1