[ create a new paste ] login | about

Link: http://codepad.org/3R4ChOMe    [ raw code | output | fork ]

kinopiko - C, pasted on Oct 18:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void spellCheck(char article[], char dictionary[]) {
    int i = 0;
    char* tempArticle;

    tempArticle = malloc((strlen(article)+1) * sizeof(char));

     strcpy(tempArticle, article);
     *tempArticle = toLower(*tempArticle);
     printf("%s", tempArticle);
}


char toLower(char letter){
    if (letter >= 'A' && letter <='Z'){
        letter = letter + 32;
    }
    return letter;
}


Output:
1
2
Line 17: error: conflicting types for 'toLower'
Line 12: error: previous implicit declaration of 'toLower' was here


Create a new paste based on this one


Comments: