This commit is contained in:
Benjamyn Love 2023-12-06 22:51:25 +11:00
parent 005b97703b
commit 1afeaff567

View File

@ -156,6 +156,22 @@ int search_right(int x, int y, char chars[140][141])
void get_string(int x, int y, char chars[140][141], struct HashTable *table) void get_string(int x, int y, char chars[140][141], struct HashTable *table)
{ {
if (x < 0)
{
return;
}
if (x > 140)
{
return;
}
if (y < 0)
{
return;
}
if (y > 141)
{
return;
}
// printf("%c", chars[x][y]); // printf("%c", chars[x][y]);
// char *cur_char = (char *)chars[x][y]; // char *cur_char = (char *)chars[x][y];
// long int num = char_to_int(cur_char); // long int num = char_to_int(cur_char);