Created
September 26, 2016 14:41
-
-
Save VOID001/aeea4b17759c9f46238c5dc3603317eb to your computer and use it in GitHub Desktop.
Say Hello To Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
> File Name: say_hello_1.c | |
> Author: VOID_133 | |
> ################### | |
> Mail: ################### | |
> Created Time: Sun 25 Sep 2016 12:33:38 AM HKT | |
************************************************************************/ | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<unistd.h> | |
#include<time.h> | |
#include<string.h> | |
int main(void) | |
{ | |
char hello[] = "...Hi Human, I am Linux"; | |
system("clear"); | |
printf("$>Hi, Linux I am human\n$>"); | |
fflush(NULL); | |
sleep(1); | |
int len = strlen(hello); | |
for(int i = 0; i < len; i++) | |
{ | |
printf("%c", hello[i]); | |
fflush(NULL); | |
usleep(100000); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment