All pastes #760846 Raw Edit

Morpheus

public c v1 · immutable
·published 2007-11-04 12:19 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){	char str2[40];	char str[] = "Gazing through the window at the world outside Wondering will mother earth survive Hoping that mankind will stop abusing her, sometime After all there's only just the two of u here we are still fighting for our lives Watching all of history repeat itself, time after time";	char *p,*z,*pc = &str[0];	int i=1,c=0,t;	while(c < strlen(str))	{		for(; c < i*40; c++)		{			if(str[c] == ' ' || str[c] == '\n')			{				p = &str[c];			}		}		for(; pc!=p; pc++)		{			for(t=0; t < strlen(str2); t++)			{				z = strchr(str2,'\0');				*z = *pc;				z++;				*z = '\0';			}		}        i++;	printf("%s",str2);    }	return 0;}