Skip to content

Instantly share code, notes, and snippets.

@VOID001 VOID001/say_hello.c
Created Sep 26, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.