diff --git a/main.c b/main.c index 4d4c08f..ea402e1 100644 --- a/main.c +++ b/main.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - while ((read = getline(&line, &len, fp)) != -1) + while ((read = _getline(&line, &len, fp)) != -1) { if (*line == '\n') { diff --git a/monty.exe b/monty.exe index e626a7f..ca59b9a 100644 Binary files a/monty.exe and b/monty.exe differ diff --git a/monty.h b/monty.h index 41de8fd..1626858 100644 --- a/monty.h +++ b/monty.h @@ -34,7 +34,7 @@ typedef struct instruction_s void (*f)(stack_t **stack, unsigned int line_number); } instruction_t; -size_t getline(char **lineptr, size_t *n, FILE *stream); +size_t _getline(char **lineptr, size_t *n, FILE *stream); void pall(stack_t **stack_ptr, unsigned int count __attribute__((unused))); size_t print_dlistint(const stack_t *stack_ptr); int delete_dnodeint(stack_t **stack_ptr, unsigned int count); diff --git a/other_functions.c b/other_functions.c index 6c60899..a7fdacb 100644 --- a/other_functions.c +++ b/other_functions.c @@ -9,7 +9,7 @@ * Return: returns the number of char entered * * */ -size_t getline(char **lineptr, size_t *n, FILE *stream) { +size_t _getline(char **lineptr, size_t *n, FILE *stream) { char *bufptr = NULL; char *p = bufptr; size_t size;