libc: Fix some naming inconsistencies

This commit is contained in:
apio 2023-05-02 20:47:16 +02:00
parent d1801d484c
commit 3628464284
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -35,16 +35,16 @@ extern "C"
#endif #endif
/* Return the absolute value of an integer. */ /* Return the absolute value of an integer. */
int abs(int v); int abs(int);
/* Return the absolute value of a long integer. */ /* Return the absolute value of a long integer. */
long labs(long v); long labs(long);
/* Return the absolute value of a long long integer. */ /* Return the absolute value of a long long integer. */
long long llabs(long long v); long long llabs(long long);
/* Return the result of dividing two integers, including the remainder. */ /* Return the result of dividing two integers, including the remainder. */
div_t div(int num, int den); div_t div(int, int);
/* Return the result of dividing two long integers, including the remainder. */ /* Return the result of dividing two long integers, including the remainder. */
ldiv_t ldiv(long, long); ldiv_t ldiv(long, long);
@ -62,7 +62,7 @@ extern "C"
void* realloc(void* ptr, size_t size); void* realloc(void* ptr, size_t size);
/* Free heap memory. */ /* Free heap memory. */
void free(void*); void free(void* ptr);
/* Abort the program without performing any normal cleanup. */ /* Abort the program without performing any normal cleanup. */
__noreturn void abort(); __noreturn void abort();