All pastes #382986 Raw Edit

Something

public text v1 · immutable
·published 2007-03-06 01:20 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char tab[] = "abcdefghiklmnopqrstuvwxyz";
	unsigned int temp;
	unsigned int nombre = 0;
	char final[100] = {'\0'};
	int result[100];
	int i = 0;
	int j = 0;
	
	FILE* fichier = NULL;
	fichier = fopen("test", "w");
	
	while(1)
	{
		temp = nombre;
		i = 0;
		while(temp >= strlen(tab))
		{
			result[i] = temp % strlen(tab);
			temp = temp / strlen(tab);
			i++;
		}
		result[i] = temp % strlen(tab);
		char final[100] = {'\0'};
		for(j=i;j>=0;j--)
		{
			final[strlen(final)] = tab[result[j]];
		}
		printf("%s\n", final);
		//fprintf(fichier, "%s\n", final);
		nombre++;
	}
return 0;
}