This library is a must for every unix C programmer.
seriously.
libclear.c->
#include <stdlib.h>
clear(void)
{
(void)system("clear");
}
clear_version(void)
{
(void)clear();
(void)system("echo Libclear version 1.00 by Michael Freeman\n");
(void)system("echo Press Control-D to continue\n");
(void)system("cat");
(void)clear();
}
Description: libclear lets you clear the screen in ANY unix/linux application! Developed especially for linux though! Libclear is NOT freeware!! You are encouraged to send $5 to the author!
srsly.(?)
Name:
Anonymous2007-07-12 3:08 ID:6DHEv6MQ
Judging from the makefile and readme, it's quite obvious it's a joke, I still lol'd though
Name:
Anonymous2007-07-12 4:39 ID:txeVX2i6
#include <stdio>
using namespace std;
void clear(int number_Of_Lines_In_Display)
{
for (int i = 1; i = number_Of_Lines_In_Display; i++)
{
cout << endl;
}
}
Name:
Anonymous2007-07-12 4:45 ID:PfUKll65
I think I understand the author's motivation for doing this, and it makes me very sad to think about.
But, on the surface, much lolz are induced.
Name:
Anonymous2007-07-12 5:09 ID:OAcBy2JU
I'm kinda tempted to package it and try to get it into a couple major distros.
win or fail?
>>5
I think you should begin by writing a Wikipedia entry for it.
Name:
Anonymous2007-07-12 5:43 ID:kQoEfWL0
>>1
Good irony of current state of Linux libraries. Every faggot writes a stupid library for everything, and you end up with a million libraries you need to install to do anything. They think their library is so important and useful it deserves a separate package, project, and of course, Wikipedia entry.
>>13
your code. awful. for(; getchar()!=EOF; (void)clear();); /* EXPERT PROGRAMMER */
and as >>14 stated, it's not portable.
However libclear is.
libclear > you
hay guise i have an idea let's make libclear into a full-time project so we can submit it to sourceforge too
It will consist only of a clear() and clear_version() but with it will be coded by EXPERT PROGRAMMERS
what does anonymous think? wikipedia is already trolled (the article isn't removed yet and i don't think they will remove it)
Name:
Anonymous2007-07-15 4:33 ID:pWZqLQbq
>>33
Libclear is not an open source project per the OSI definition (let alone Free Software according to GNU). Someone should rewrite it and release it under a MIT or BSD license. Should we start project freeclear?
Name:
Anonymous2007-07-15 5:20 ID:PamYvA1v
>>38
Agreed. It should be free as in freedom and beer... and stuff.
Name:
Anonymous2007-07-15 5:26 ID:uNcxH1lT
>>38
I don't understand, why not? The source of the code is available, hence ``open source''