Merge branch 'doc-monetary' into 'master'

update and add spec links for monetary

See merge request redox-os/relibc!830
This commit is contained in:
Jeremy Soller
2025-12-21 13:33:18 -07:00
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
/// monetary.h implementation for Redox, following the POSIX standard.
/// Following https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/monetary.h.html
/// `monetary.h` implementation.
///
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/monetary.h.html>.
///
/// We should provide a strfmon() implementation that formats a monetary value,
/// according to the current locale (TODO).
+2
View File
@@ -5,6 +5,8 @@ use alloc::string::{String, ToString};
use core::{ffi::CStr, ptr, result, slice, str};
use libm::{fabs, floor, pow, round, trunc};
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html>.
///
/// The `strfmon()` function formats a monetary value according to the format string `format`
/// and writes the result to the character array `s` of size `maxsize`.
/// The format string can contain plain characters and format specifiers.