| 	
Prev: creating a socket Next: Learn about proxy sites and how to use them to open blocked sites unlimited downloads from RapidShare and megaupload and increase the speed of the Internet with new sites for free 	
		 From: Phred Phungus on 28 Mar 2010 03:17 Stefan Ram wrote: > BigBrother <cowboyninja(a)gmail.com> writes: >> I'm trying to build a very basic shell > > Here's my very basic shell: > > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > > int main( void ) > { char buff[ 1000 ]; for( int looping = 1; looping; ) > { putchar( '$' ); fflush( stdout ); scanf( "%999s", buff ); > if( strcmp( buff, "exit" ))system( buff ); else looping = 0; }} > That's ghastly. -- fred |