printf: Print "(null)" for NULL pointers (%s) #4

Closed
opened 2025-07-20 12:50:15 +02:00 by Kwarde · 0 comments
Owner

Currently printf assumes that arg for %s points to a string correctly.
While I don't know how to properly check if it's a valid pointer, I can atleast print "(null)" if arg=0 (EOS)

Currently printf assumes that arg for %s points to a string correctly. While I don't know how to properly check if it's a valid pointer, I can atleast print "(null)" if arg=0 (EOS)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Kwarde/klibc#4
No description provided.