Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Implement 'printf' utility #57

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

AtkinsSJ
Copy link
Contributor

This is by no means complete, but covers most of the POSIX spec: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html

Still to do:

  • %a and %A hexadecimal float formatters
  • %b for formatting a string including escape sequences
  • Anything beyond the spec that's common and users might expect.

This is by no means complete, but covers most of the POSIX spec:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html

- Escape sequences (currently the shell handles these wrong, see
  HeyPuter#53 )
- %d %i %o %u %x and %X integer formatters
- %e %E %f %F %g and %G float formatters
- %c and %S string formatters

Still to do:
- %a and %A hexadecimal float formatters
- %b for formatting a string including escape sequences
- Anything beyond the spec that's common and users might expect.
@CLAassistant
Copy link

CLAassistant commented Mar 11, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@KernelDeimos KernelDeimos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Wow printf does even more than what I knew about

@KernelDeimos KernelDeimos merged commit 03b15d6 into HeyPuter:trunk Mar 11, 2024
3 checks passed
@AtkinsSJ AtkinsSJ deleted the printf-builtin branch March 11, 2024 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants