Skip to content

Instantly share code, notes, and snippets.

@VOID001
Created September 26, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VOID001/aeea4b17759c9f46238c5dc3603317eb to your computer and use it in GitHub Desktop.
Save VOID001/aeea4b17759c9f46238c5dc3603317eb to your computer and use it in GitHub Desktop.
Say Hello To Linux
/*************************************************************************
> 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