Changed the signatures of some of the List functions to have the 'const' contract. I feel this makes more sense to have since these functions are to not modify all or some of their parameters. Plus it just feels right to have them defined this way.

This commit is contained in:
2022-01-05 16:02:06 +00:00
parent 08acc6af22
commit 2d3b6f1858
2 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ typedef struct {
} List;
List* CreateList(void);
int AddListItem(char *, List *);
void PrintList(List*);
int AddListItem(const char *, List *);
void PrintList(const List*);
void DestroyList(List*);
#endif