libc: Document functions in headers #11

Merged
asleepymoon merged 12 commits from descriptive_headers into main 2022-10-12 10:11:45 +00:00
Owner

Right now, header functions are of the sort:
int foo(int, const char*);

These prototypes are not very descriptive.

This pull request starts changing the headers to add parameter names to functions and a short description, to be more helpful and expressive.

Now foo would be:

// Does the foo operation bar times to the string baz.
int foo(int bar, const char* baz);

Which is a lot more readable.

Right now, header functions are of the sort: int foo(int, const char*); These prototypes are not very descriptive. This pull request starts changing the headers to add parameter names to functions and a short description, to be more helpful and expressive. Now foo would be: // Does the foo operation bar times to the string baz. int foo(int bar, const char* baz); Which is a lot more readable.
asleepymoon added 1 commit 2022-10-12 09:05:05 +00:00
asleepymoon added 1 commit 2022-10-12 09:19:21 +00:00
asleepymoon added 1 commit 2022-10-12 09:20:54 +00:00
asleepymoon added 1 commit 2022-10-12 09:30:28 +00:00
Also, add prototypes for calloc() and realloc(), which were already implemented but not in the header.
asleepymoon added 1 commit 2022-10-12 09:51:40 +00:00
asleepymoon added 1 commit 2022-10-12 09:54:36 +00:00
asleepymoon added 2 commits 2022-10-12 09:58:14 +00:00
asleepymoon added 2 commits 2022-10-12 10:01:24 +00:00
asleepymoon added 1 commit 2022-10-12 10:06:53 +00:00
asleepymoon added 1 commit 2022-10-12 10:07:48 +00:00
asleepymoon changed title from WIP: libc: Document functions in headers to libc: Document functions in headers 2022-10-12 10:11:23 +00:00
asleepymoon merged commit a8eb7a6b66 into main 2022-10-12 10:11:45 +00:00
asleepymoon deleted branch descriptive_headers 2022-10-12 10:11:45 +00:00
asleepymoon added the
enhancement
label 2022-10-12 10:12:05 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: asleepymoon/Luna#11
No description provided.