fix typo in function declaration sort_random_pool_to_greater()
authorJens Kasten <jens@kasten-edv.de>
Fri, 04 Mar 2011 01:46:06 +0100
changeset 2 803affa7a5b4
parent 1 18e7503af60f
child 3 7be71cab2ebf
fix typo in function declaration sort_random_pool_to_greater()
.hgignore
bubblesort/bubblesort.c
hebrae/Makefile
hebrae/hebrae.c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Fri Mar 04 01:46:06 2011 +0100
@@ -0,0 +1,3 @@
+syntax: glob
+*.o
+
--- a/bubblesort/bubblesort.c	Thu Mar 03 15:48:04 2011 +0100
+++ b/bubblesort/bubblesort.c	Fri Mar 04 01:46:06 2011 +0100
@@ -7,7 +7,7 @@
 void create_random_pool(int *prandom_pool);
 void show_random_pool(int *prandom_pool);
 void sort_random_pool_to_less(int *prandom_pool);
-void sort_random_poot_to_greater(int *prandom_pool);
+void sort_random_pool_to_greater(int *prandom_pool);
 
 int main(void)
 {
--- a/hebrae/Makefile	Thu Mar 03 15:48:04 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-IDIR="/usr/src/linux/include/rsbac"
-CC=gcc
-CFLAGS=-I$(IDIR)
-
-ODIR=obj
-
-LIBS=-lrsbac
-OBJ=hebrae.o
-
-hebrae: $(OBJ)
-	gcc -o $@ $^ $(CFLAGS) $(LIBS)
-
-.PHONY: clean
-
-clean: 
-	rm -f *.o hebrae
-
-
-
--- a/hebrae/hebrae.c	Thu Mar 03 15:48:04 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-
-#define CRYPT_ROWS 10
-#define CRYPT_COLUMNS 10
-#define TEXT_MAX_LENGTH CRYPT_ROWS * CRYPT_COLUMNS 
-
-char text[TEXT_MAX_LENGTH];
-
-int input_text(void)
-{
-    int  i = 0;
-    int c;
-
-    printf("Type your text: ");
-    while ((c=getchar()) != 10) { 
-        putchar(c);
-        text[i] = c;
-        i++;
-    }
-    return i-1;
-}
-
-int main(void)
-{
-    int crypt_text[CRYPT_ROWS][CRYPT_COLUMNS];
-    int text_length;
-    int i, j, k;
-
-    printf("Insert your text to: ");
-    text_length = input_text();
-    printf("text length: %d char(s)\n", text_length);
-    printf("text: %s\n", text);
-
-    for (i=0; i < CRYPT_ROWS; i++) {
-        for (j=0; j < CRYPT_COLUMNS; j++) {
-            for (k=0; k < strlen(text)-1; k++) {
-                crypt_text[i][j] = text[k];
-                printf("text k: %d\n", text[k]);
-            }
-        }
-    }
-
-    for (i=0; i < CRYPT_ROWS; i++) {
-        for (j=0; j < CRYPT_COLUMNS; j++) {
-            printf("crypt text [%d][%d] %d\n", i, j, crypt_text[i][j]);
-        }
-    }
-   
-    return 0;
-}