Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbaa committed Jun 20, 2021
1 parent 1fa1e3d commit 3dc252a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef struct mcpi_err_t
} mcpi_err_t;
```

### `mcpi_command_t parse_command(char* string, mcpi_err_t* err)`
### `mcpi_command_t mcpi_parse_command(const char* string, mcpi_err_t* err)`
Returns the parsed `string` as a `mcpi_command_t`. You should check the `err` output argument for errors.

## Licensing
Expand Down
2 changes: 1 addition & 1 deletion src/mcpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <stdio.h>
#include <mcpi.h>

mcpi_command_t mcpi_parse_command(char* string, mcpi_err_t* err)
mcpi_command_t mcpi_parse_command(const char* string, mcpi_err_t* err)
{
char y;
int i = 0, j = 0, k = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/mcpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ typedef struct mcpi_err_t
char chr;
} mcpi_err_t;

mcpi_command_t mcpi_parse_command(char* string, mcpi_err_t* err);
mcpi_command_t mcpi_parse_command(const char* string, mcpi_err_t* err);

#endif /* LIB_MCPI_H */

0 comments on commit 3dc252a

Please sign in to comment.