3 Commits

Author SHA1 Message Date
dfd840de1f Update BUILDING.md 2024-12-07 21:19:47 +02:00
d5515f43ce Update BUILDING.md 2024-12-07 21:18:17 +02:00
4a1da8d373 Convert tab indentation to spaces. This is how normal people do it. :D 2024-12-06 23:44:04 +02:00
2 changed files with 535 additions and 540 deletions

View File

@ -1,13 +1,18 @@
Building and installing
-----------------------
#### Requirements & dependencies:
### Prerequisites
- GCC compatible compiler
- POSIX getopt support from **<unistd.h>**
- make
- POSIX.1 support
* getopt()
* strcasecmp()
* tcflush()
---
#### Compiling
### Compiling
cc -std=gnu99 -Wpedantic -Wall -Wextra -Wno-gnu-zero-variadic-macro-arguments -O2 -o mcrcon mcrcon.c

View File

@ -827,15 +827,5 @@ int get_line(char *buffer, int bsize)
buffer[strcspn(buffer, "\r\n")] = '\0';
int len = strlen(buffer);
#if 0
// clean input buffer if needed
#ifndef _WIN32
if (len == bsize - 1) {
int ch;
while ((ch = getchar()) != '\n' && ch != EOF);
}
#endif
#endif
return len;
}