Skip to content

Commit

Permalink
Fix signature of prompt function
Browse files Browse the repository at this point in the history
  • Loading branch information
speelbarrow committed Jun 20, 2023
1 parent 056e930 commit ace0080
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/amadeus/prompt.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef PROMPT_H
#define PROMPT_H

int prompt(const char **message);
int prompt(const char *message);

#endif // PROMPT_H
8 changes: 4 additions & 4 deletions src/prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
#include <stdio.h>
#include <stdlib.h>

int prompt_counted(const char **message, int count);
int prompt_counted(const char *message, int count);

int prompt(const char **message) {
int prompt(const char *message) {
return prompt_counted(message, 0);
}

int prompt_counted(const char **message, int count) {
printf("%s: ", *message);
int prompt_counted(const char *message, int count) {
printf("%s: ", message);

char *buffer = NULL;
size_t buffer_size = 0;
Expand Down

0 comments on commit ace0080

Please sign in to comment.