Skip to content

Instantly share code, notes, and snippets.

@ahfoukou
ahfoukou / gist:4484750
Last active December 10, 2015 19:58
malakia noumer 2
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int foo( char c[] )
{
int i , size , d = 0 , j = 1, a;
size = strlen(c);
for (i = size-1 ; i >= 0; i--)
{
void save_puzzle(unsigned char board[][9])
{
int i, j, k;
char path[50];
clrscr();
printf("Insert the name of the file you want to save your sudoku puzzle \n");
scanf("%s", path);
k = strlen(path);
FILE *file = fopen(path, "w+");
if(!file)
void create_puzzle(char board[][9])
{
char buffer[50] = { 0 };
int i=0, k=0;
clrscr();
gotoxy(0,21);
clear_puzzle(board);
printf("\nManually create a sudoku puzzle!\n ");
while (i < 9)
{