If you would be so kind to go to this url, where I have already posted my problem and give me some tips on this forum or on the one already posted:
http://www.linuxquestions.org/questions/showthread.php?s=&threadid=387067
Thanks in advance,
P.S. This is really urgent, and it is probably a small problem.
Some updated code is here:
int RecursiveSearchLeft (char letters
[LETTERARRAYROWSIZE][LETTERARRAYCOLUMNSIZE],
int row, int column, WORD *words,
int wordIndex)
{
int characterIndex = 0;
if (letters [row][column] ==
words [wordIndex].word [characterIndex] &&
characterIndex <= strlen (words [wordIndex].word))
{
if (characterIndex == 0)
{
words [wordIndex].startRow = row;
words [wordIndex].startCol = column;
}
characterIndex++;
if (characterIndex == (strlen (words [wordIndex].word) - 1))
{
return 1;
}
RecursiveSearchLeft (letters, row, column - 1, words,
wordIndex);
}
else if (column > NOBUFFERSTARTCOLUMN)
{
RecursiveSearchLeft (letters, row, column - 1, words,
wordIndex);
}
else if (column == NOBUFFERSTARTCOLUMN && row < NOBUFFERENDROW)
{
RecursiveSearchLeft (letters, row + 1, NOBUFFERSTARTCOLUMN,
words, wordIndex);
}
words [wordIndex].startRow = 0;
words [wordIndex].startCol = 0;
return 0;
}
Thanks, Mistro116