aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-09-28 14:04:09 +1300
committerDavid <dbphillipsnz@gmail.com>2014-09-28 14:04:09 +1300
commita38508db1e68bc8b6391c8d688b8e3636463b1be (patch)
tree081eab3d577a6bf43da42df3ab976b87e6b9299c /common.c
parent1c62e5b82cda581162b2a84e17d7ab551b573219 (diff)
downloadparamano-a38508db1e68bc8b6391c8d688b8e3636463b1be.tar.xz
Removed unused function
Diffstat (limited to 'common.c')
-rw-r--r--common.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/common.c b/common.c
index a85efd3..2a802d8 100644
--- a/common.c
+++ b/common.c
@@ -48,7 +48,7 @@ int get_int_value_from_file(const char* filename)
bool file_has_line(const char *filename, const char *line)
{
FILE* fd;
- char buffer[512];
+ char buffer[4096];
if (!(fd = fopen(filename, "r")))
return false;
@@ -94,13 +94,7 @@ int get_int(const char* string)
return atoi(first_num);
}
-
/***********************************************************************
- * Replace occurrences of \n from end of string with \0
+ * Get value after token in file.
+ * For example:
**********************************************************************/
-void chomp(char* string)
-{
- int i;
- for (i = strlen(string)-1; (i >= 0 && string[i] == '\n'); i--)
- string[i] = '\0';
-}