Some quick code cleanup
modified: src/nms.c
This commit is contained in:
parent
74c7075cd0
commit
d0bec878b3
@ -16,8 +16,6 @@ int main(void) {
|
|||||||
int termSizeCols = getTermSizeCols();
|
int termSizeCols = getTermSizeCols();
|
||||||
char *inputBuffer;
|
char *inputBuffer;
|
||||||
|
|
||||||
inputBuffer = malloc(sizeof(char));
|
|
||||||
|
|
||||||
clearTermWindow(termSizeRows, termSizeCols);
|
clearTermWindow(termSizeRows, termSizeCols);
|
||||||
|
|
||||||
// Geting input
|
// Geting input
|
||||||
@ -53,7 +51,6 @@ int getTermSizeCols(void) {
|
|||||||
void clearTermWindow(int pRows, int pCols) {
|
void clearTermWindow(int pRows, int pCols) {
|
||||||
int row, col;
|
int row, col;
|
||||||
|
|
||||||
printf("rows: %i, cols: %i\n", pRows, pCols);
|
|
||||||
// Clearing window
|
// Clearing window
|
||||||
for (row = 1; row <= pRows; ++row) {
|
for (row = 1; row <= pRows; ++row) {
|
||||||
for (col = 1; col <= pCols; ++col)
|
for (col = 1; col <= pCols; ++col)
|
||||||
|
Loading…
Reference in New Issue
Block a user