Remove comments and printMap()
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
* @brief Client for OSUE exercise 1B `Battleship'.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
@@ -290,17 +289,6 @@ static void makeHit(void)
|
||||
markSunk();
|
||||
}
|
||||
|
||||
static void printMap(void)
|
||||
{
|
||||
for (int y = 0; y < MAP_SIZE; y++) {
|
||||
for (int x = 0; x < MAP_SIZE; x++) {
|
||||
fprintf(stdout, "%d\t", field[x][y]);
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct sigaction sa;
|
||||
|
||||
Reference in New Issue
Block a user