Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
{
Expand Down
Binary file modified monty.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion monty.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion other_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down