diff options
Diffstat (limited to 'dev/c/src/hello/hello.c')
-rw-r--r-- | dev/c/src/hello/hello.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev/c/src/hello/hello.c b/dev/c/src/hello/hello.c index df66493..092efa5 100644 --- a/dev/c/src/hello/hello.c +++ b/dev/c/src/hello/hello.c @@ -1,6 +1,10 @@ #include <stdio.h> +#include <unistd.h> int main() { - printf("hello World!"); + char *name; + name = getlogin(); + + printf("hello %s!\n", name); return 0; } |